diff options
Diffstat (limited to 'vendor/fguillot/picofeed/lib/PicoFeed/Rules/cnet.com.php')
-rw-r--r-- | vendor/fguillot/picofeed/lib/PicoFeed/Rules/cnet.com.php | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/cnet.com.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/cnet.com.php index fdffefd35..402196840 100644 --- a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/cnet.com.php +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/cnet.com.php @@ -2,6 +2,23 @@ return array( 'grabber' => array( + '%^/products.*%' => array( + 'test_url' => 'http://www.cnet.com/products/fibaro-flood-sensor/#ftag=CADf328eec', + 'body' => array( + '//li[contains(@class,"slide first"] || //figure[contains(@class,(promoFigure))]', + '//div[@class="quickInfo"]', + '//div[@class="col-6 ratings"]', + '//div[@id="editorReview"]', + ), + 'strip' => array( + '//script', + '//a[@class="clickToEnlarge"]', + '//div[@section="topSharebar"]', + '//div[contains(@class,"related")]', + '//div[contains(@class,"ad-")]', + '//div[@section="shortcodeGallery"]', + ), + ), '%.*%' => array( 'test_url' => 'http://cnet.com.feedsportal.com/c/34938/f/645093/s/4a340866/sc/28/l/0L0Scnet0N0Cnews0Cman0Eclaims0Eonline0Epsychic0Emade0Ehim0Ebuy0E10Emillion0Epowerball0Ewinning0Eticket0C0Tftag0FCAD590Aa51e/story01.htm', 'body' => array( @@ -9,12 +26,12 @@ return array( '//div[@itemprop="articleBody"]', ), 'strip' => array( - '//script', - '//a[@class="clickToEnlarge"]', - '//div[@section="topSharebar"]', - '//div[contains(@class,"related")]', - '//div[contains(@class,"ad-")]', - '//div[@section="shortcodeGallery"]', + '//script', + '//a[@class="clickToEnlarge"]', + '//div[@section="topSharebar"]', + '//div[contains(@class,"related")]', + '//div[contains(@class,"ad-")]', + '//div[@section="shortcodeGallery"]', ), ), ), |