summaryrefslogtreecommitdiffstats
path: root/vendor/fguillot/picofeed/lib/PicoFeed/Rules
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/fguillot/picofeed/lib/PicoFeed/Rules')
-rw-r--r--vendor/fguillot/picofeed/lib/PicoFeed/Rules/.over-blog.com.php11
-rw-r--r--vendor/fguillot/picofeed/lib/PicoFeed/Rules/encyclopedie.naheulbeuk.com.php13
-rw-r--r--vendor/fguillot/picofeed/lib/PicoFeed/Rules/greekculture.com.php12
-rw-r--r--vendor/fguillot/picofeed/lib/PicoFeed/Rules/news.sciencemag.org.php18
-rw-r--r--vendor/fguillot/picofeed/lib/PicoFeed/Rules/rugbyrama.fr.php20
-rw-r--r--vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.franceculture.fr.php3
-rw-r--r--vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.monsieur-le-chien.fr.php11
-rw-r--r--vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.sciencemag.org.php16
8 files changed, 72 insertions, 32 deletions
diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/.over-blog.com.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/.over-blog.com.php
new file mode 100644
index 000000000..cc5d83c78
--- /dev/null
+++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/.over-blog.com.php
@@ -0,0 +1,11 @@
+<?php
+return array(
+ 'grabber' => array(
+ '%.*%' => array(
+ 'test_url' => 'http://eliascarpe.over-blog.com/2015/12/re-upload-projets-d-avenir.html',
+ 'body' => array(
+ '//div[contains(concat(" ", normalize-space(@class), " "), " ob-section ")]',
+ ),
+ )
+ )
+);
diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/encyclopedie.naheulbeuk.com.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/encyclopedie.naheulbeuk.com.php
new file mode 100644
index 000000000..19bcbdefb
--- /dev/null
+++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/encyclopedie.naheulbeuk.com.php
@@ -0,0 +1,13 @@
+<?php
+return array(
+ 'grabber' => array(
+ '%.*%' => array(
+ 'test_url' => 'http://encyclopedie.naheulbeuk.com/article.php3?id_article=352',
+ 'body' => array(
+ '//td//h1[@class="titre-texte"]',
+ '//td//div[@class="surtitre"]',
+ '//td//div[@class="texte"]',
+ ),
+ )
+ ),
+);
diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/greekculture.com.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/greekculture.com.php
deleted file mode 100644
index 9410de9c5..000000000
--- a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/greekculture.com.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-
-return array(
- 'grabber' => array(
- '%/joyoftech/.*%' => array(
- 'body' => array(
- '//img[@width="640"]',
- ),
- 'test_url' => 'http://www.geekculture.com/joyoftech/joyarchives/2235.html',
- ),
- ),
-);
diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/news.sciencemag.org.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/news.sciencemag.org.php
deleted file mode 100644
index 9b572ef4b..000000000
--- a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/news.sciencemag.org.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?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"]',
- ),
- ),
- )
-);
-
diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/rugbyrama.fr.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/rugbyrama.fr.php
new file mode 100644
index 000000000..2280b66d2
--- /dev/null
+++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/rugbyrama.fr.php
@@ -0,0 +1,20 @@
+<?php
+return array(
+ 'grabber' => array(
+ '%.*%' => array(
+ 'test_url' => 'http://www.rugbyrama.fr/rugby/top-14/2015-2016/top-14-hayman-coupe-du-monde-finale-2012-lutte.-voici-levan-chilachava-toulon_sto5283863/story.shtml',
+ 'body' => array(
+ '//div[@class="story-simple-content"]',
+ ),
+ 'strip' => array(
+ '//script',
+ '//form',
+ '//style',
+ '//*[@class="share-buttons"]',
+ '//*[@class="show-mobile-block"]',
+ '//*[@class="hide-desktop"]',
+ '//*[@id="tracking_img"]',
+ )
+ )
+ )
+); \ No newline at end of file
diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.franceculture.fr.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.franceculture.fr.php
index 67e3253a1..f7ec0d8db 100644
--- a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.franceculture.fr.php
+++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.franceculture.fr.php
@@ -4,8 +4,7 @@ return array(
'%.*%' => array(
'test_url' => 'http://www.franceculture.fr/emission-culture-eco-la-finance-aime-toujours-la-france-2016-01-08',
'body' => array(
- '//div[@class="heading"]/*/*/div[contains(@class,"player-inline")]',
- '//article/div[@class="text-zone"]',
+ '//div[@class="text-zone"]',
),
'strip' => array(
'//ul[@class="tags"]',
diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.monsieur-le-chien.fr.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.monsieur-le-chien.fr.php
new file mode 100644
index 000000000..5f5e987ba
--- /dev/null
+++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.monsieur-le-chien.fr.php
@@ -0,0 +1,11 @@
+<?php
+return array(
+ 'grabber' => array(
+ '%.*%' => array(
+ 'test_url' => 'http://www.monsieur-le-chien.fr/index.php?planche=672',
+ 'body' => array(
+ '//img[starts-with(@src, "i/planches/")]',
+ ),
+ )
+ )
+);
diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.sciencemag.org.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.sciencemag.org.php
new file mode 100644
index 000000000..3d348577d
--- /dev/null
+++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.sciencemag.org.php
@@ -0,0 +1,16 @@
+<?php
+return array(
+ 'grabber' => array(
+ '%.*%' => array(
+ 'test_url' => 'http://www.sciencemag.org/news/2016/01/could-bright-foamy-wak$
+ 'body' => array(
+ '//div[@class="row--hero"]',
+ '//article[contains(@class,"primary")]',
+ ),
+ 'strip' => array(
+ '//header[@class="article__header"]',
+ '//footer[@class="article__foot"]',
+ ),
+ ),
+ )
+);