diff options
Diffstat (limited to 'vendor/fguillot/picofeed/lib/PicoFeed/Rules/news.sciencemag.org.php')
-rw-r--r-- | vendor/fguillot/picofeed/lib/PicoFeed/Rules/news.sciencemag.org.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/news.sciencemag.org.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/news.sciencemag.org.php new file mode 100644 index 000000000..9b572ef4b --- /dev/null +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/news.sciencemag.org.php @@ -0,0 +1,18 @@ +<?php +return array( + 'grabber' => array( + '%.*%' => array( + 'test_url' => 'http://news.sciencemag.org/biology/2015/09/genetic-engineering-turns-common-plant-cancer-fighter', + 'body' => array( + '//div[@class="content"]', + ), + 'strip' => array( + '//h1[@class="snews-article__headline"]', + '//div[contains(@class,"easy_social_box")]', + '//div[@class="author-teaser"]', + '//div[@class="article-byline"]', + ), + ), + ) +); + |