From 7a3e8512b6a17e0199b85b95e4dd4bc187f78b70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Guillot?= Date: Wed, 19 Mar 2014 20:10:11 -0400 Subject: [PATCH] Add more grabber rules: dozodomo.com, ffworld.com, kanpai.fr and lejapon.fr --- README.markdown | 45 ++------------------------ vendor/PicoFeed/Rules/dozodomo.com.php | 11 +++++++ vendor/PicoFeed/Rules/ffworld.com.php | 9 ++++++ vendor/PicoFeed/Rules/kanpai.fr.php | 9 ++++++ vendor/PicoFeed/Rules/lejapon.fr.php | 14 ++++++++ 5 files changed, 46 insertions(+), 42 deletions(-) create mode 100644 vendor/PicoFeed/Rules/dozodomo.com.php create mode 100644 vendor/PicoFeed/Rules/ffworld.com.php create mode 100644 vendor/PicoFeed/Rules/kanpai.fr.php create mode 100644 vendor/PicoFeed/Rules/lejapon.fr.php diff --git a/README.markdown b/README.markdown index 74e53f5..e945528 100644 --- a/README.markdown +++ b/README.markdown @@ -55,6 +55,7 @@ People who sent a pull-request, report a bug, make a new theme or share a super - Eauland: https://github.com/eauland - Félix: https://github.com/dysosmus - Geriel Castro: https://github.com/GerielCastro +- Hika0: https://github.com/hika0 - Horsely: https://github.com/horsley - Ing. Jan Kaláb: https://github.com/Pitel - Itoine: https://github.com/itoine @@ -397,46 +398,6 @@ Don't forget to send a pull request or a ticket to share your contribution with ### List of content grabber rules -**If you want to add new rules, just open a ticket and I will do it.** +Rules are stored here: [vendor/PicoFeed/Rules](https://github.com/fguillot/miniflux/tree/master/vendor/PicoFeed/Rules) -- *.blog.lemonde.fr -- *.blog.nytimes.com -- *.igen.fr -- *.nytimes.com -- *.phoronix.com -- *.slate.com -- *.theguardian.com -- *.wikipedia.org -- *.wired.com -- *.wsj.com -- consomac.fr -- github.com -- golem.de -- ing.dk -- karriere.jobfinder.dk -- lesjoiesducode.fr -- lifehacker.com -- lists.* -- medium.com -- pastebin.com -- plus.google.com -- rue89.com -- smallhousebliss.com -- spiegel.de -- techcrunch.com -- version2.dk -- www.bbc.co.uk -- www.bdgest.com -- www.businessweek.com -- www.cnn.com -- www.egscomics.com -- www.forbes.com -- www.futura-sciences.com -- www.lemonde.fr -- www.lepoint.fr -- www.mac4ever.com -- www.npr.org -- www.numerama.com -- www.pcinpact.com -- www.slate.fr -- www.universfreebox.com +If you want to add new rules, just open a ticket and I will do it. diff --git a/vendor/PicoFeed/Rules/dozodomo.com.php b/vendor/PicoFeed/Rules/dozodomo.com.php new file mode 100644 index 0000000..7ef5737 --- /dev/null +++ b/vendor/PicoFeed/Rules/dozodomo.com.php @@ -0,0 +1,11 @@ + 'http://dozodomo.com/bento/2014/03/04/lart-des-maki-de-takayo-kiyota/', + 'body' => array( + '//div[@class="joke"]', + '//div[@class="story-cover"]', + '//div[@class="story-content"]', + ), + 'strip' => array( + ) +); \ No newline at end of file diff --git a/vendor/PicoFeed/Rules/ffworld.com.php b/vendor/PicoFeed/Rules/ffworld.com.php new file mode 100644 index 0000000..ba5db57 --- /dev/null +++ b/vendor/PicoFeed/Rules/ffworld.com.php @@ -0,0 +1,9 @@ + 'http://www.ffworld.com/?rub=news&page=voir&id=2709', + 'body' => array( + '//div[@class="news_body"]', + ), + 'strip' => array( + ) +); diff --git a/vendor/PicoFeed/Rules/kanpai.fr.php b/vendor/PicoFeed/Rules/kanpai.fr.php new file mode 100644 index 0000000..5a13053 --- /dev/null +++ b/vendor/PicoFeed/Rules/kanpai.fr.php @@ -0,0 +1,9 @@ + 'http://www.kanpai.fr/japon/comment-donner-lheure-en-japonais.html', + 'body' => array( + '//div[@class="single-left"]', + ), + 'strip' => array( + ) +); \ No newline at end of file diff --git a/vendor/PicoFeed/Rules/lejapon.fr.php b/vendor/PicoFeed/Rules/lejapon.fr.php new file mode 100644 index 0000000..8066c3d --- /dev/null +++ b/vendor/PicoFeed/Rules/lejapon.fr.php @@ -0,0 +1,14 @@ + 'http://lejapon.fr/guide-voyage-japon/5223/tokyo-sous-la-neige.htm', + 'body' => array( + '//div[@class="entry"]' + ), + 'strip' => array( + '//script', + '//*[contains(@class, "addthis_toolbox")]', + '//*[contains(@class, "addthis_default_style")]', + '//*[@class="navigation small"]', + '//*[@id="related"]', + ) +);