cnet.com.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. return array(
  3. 'grabber' => array(
  4. '%^/products.*%' => array(
  5. 'test_url' => 'http://www.cnet.com/products/fibaro-flood-sensor/#ftag=CADf328eec',
  6. 'body' => array(
  7. '//li[contains(@class,"slide first"] || //figure[contains(@class,(promoFigure))]',
  8. '//div[@class="quickInfo"]',
  9. '//div[@class="col-6 ratings"]',
  10. '//div[@id="editorReview"]',
  11. ),
  12. 'strip' => array(
  13. '//script',
  14. '//a[@class="clickToEnlarge"]',
  15. '//div[@section="topSharebar"]',
  16. '//div[contains(@class,"related")]',
  17. '//div[contains(@class,"ad-")]',
  18. '//div[@section="shortcodeGallery"]',
  19. ),
  20. ),
  21. '%.*%' => array(
  22. 'test_url' => 'http://cnet.com.feedsportal.com/c/34938/f/645093/s/4a340866/sc/28/l/0L0Scnet0N0Cnews0Cman0Eclaims0Eonline0Epsychic0Emade0Ehim0Ebuy0E10Emillion0Epowerball0Ewinning0Eticket0C0Tftag0FCAD590Aa51e/story01.htm',
  23. 'body' => array(
  24. '//p[@itemprop="description"]',
  25. '//div[@itemprop="articleBody"]',
  26. ),
  27. 'strip' => array(
  28. '//script',
  29. '//a[@class="clickToEnlarge"]',
  30. '//div[@section="topSharebar"]',
  31. '//div[contains(@class,"related")]',
  32. '//div[contains(@class,"ad-")]',
  33. '//div[@section="shortcodeGallery"]',
  34. ),
  35. ),
  36. ),
  37. );