summaryrefslogtreecommitdiff
path: root/vendor/miniflux/picofeed/lib/PicoFeed/Rules/cnet.com.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-10-25 16:22:10 -0700
committerFrederic Guillot <fred@kanboard.net>2017-10-25 16:22:10 -0700
commit9e2b2a32fd0e967ad3184e9a5d091a29953acb91 (patch)
tree00822e24aa1110c73ca455a8d096ef296c008cbc /vendor/miniflux/picofeed/lib/PicoFeed/Rules/cnet.com.php
parentc507c5416251c505cb3e088a03c6664bed73c812 (diff)
Include composer dependencies in repo
Diffstat (limited to 'vendor/miniflux/picofeed/lib/PicoFeed/Rules/cnet.com.php')
-rw-r--r--vendor/miniflux/picofeed/lib/PicoFeed/Rules/cnet.com.php37
1 files changed, 37 insertions, 0 deletions
diff --git a/vendor/miniflux/picofeed/lib/PicoFeed/Rules/cnet.com.php b/vendor/miniflux/picofeed/lib/PicoFeed/Rules/cnet.com.php
new file mode 100644
index 00000000..60767a53
--- /dev/null
+++ b/vendor/miniflux/picofeed/lib/PicoFeed/Rules/cnet.com.php
@@ -0,0 +1,37 @@
+<?php
+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(
+ '//p[@itemprop="description"]',
+ '//div[@itemprop="articleBody"]',
+ ),
+ 'strip' => array(
+ '//script',
+ '//a[@class="clickToEnlarge"]',
+ '//div[@section="topSharebar"]',
+ '//div[contains(@class,"related")]',
+ '//div[contains(@class,"ad-")]',
+ '//div[@section="shortcodeGallery"]',
+ ),
+ ),
+ ),
+);