From d29653f121240bc8bbc6f5ea0a21e05a89826ae7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Guillot?= Date: Wed, 18 Sep 2013 22:48:29 -0400 Subject: [PATCH] Add new grabber rules --- README.markdown | 11 +++++++++-- ...eguardian.com.php => .theguardian.com.php} | 1 + vendor/PicoFeed/Rules/.wired.com.php | 19 +++++++++++++++++++ vendor/PicoFeed/Rules/plus.google.com.php | 7 +++++++ .../PicoFeed/Rules/www.businessweek.com.php | 11 +++++++++++ vendor/PicoFeed/Rules/www.lepoint.fr.php | 16 ++++++++++++++++ vendor/PicoFeed/Rules/www.npr.org.php | 15 +++++++++++++++ 7 files changed, 78 insertions(+), 2 deletions(-) rename vendor/PicoFeed/Rules/{www.theguardian.com.php => .theguardian.com.php} (83%) create mode 100644 vendor/PicoFeed/Rules/.wired.com.php create mode 100644 vendor/PicoFeed/Rules/plus.google.com.php create mode 100644 vendor/PicoFeed/Rules/www.businessweek.com.php create mode 100644 vendor/PicoFeed/Rules/www.lepoint.fr.php create mode 100644 vendor/PicoFeed/Rules/www.npr.org.php diff --git a/README.markdown b/README.markdown index 0ee82ae..ac9ce6e 100644 --- a/README.markdown +++ b/README.markdown @@ -278,6 +278,8 @@ It would be awesome for everybody :) - Original theme By Frederic Guillot - Midnight By Luca Marra - Green by Maxime (aka EpocDotFr) +- Bootstrap 3 (Light) By Silvus +- Bootswatch Cyborg By Silvus ### Coding standards for contributors @@ -336,20 +338,25 @@ Don't forget to send a pull request or a ticket to share your contribution with - *.blog.lemonde.fr - *.blog.nytimes.com -- *.nytimes.php +- *.nytimes.com - *.slate.com +- *.theguardian.com - *.wikipedia.org +- *.wired.com - *.wsj.com - github.com - lifehacker.com +- plus.google.com - rue89.com - smallhousebliss.com - techcrunch.com - www.bbc.co.uk +- www.businessweek.com - www.cnn.com - www.egscomics.com - www.forbes.com - www.lemonde.fr +- www.lepoint.fr +- www.npr.org - www.numerama.com - www.slate.fr -- www.theguardian.com diff --git a/vendor/PicoFeed/Rules/www.theguardian.com.php b/vendor/PicoFeed/Rules/.theguardian.com.php similarity index 83% rename from vendor/PicoFeed/Rules/www.theguardian.com.php rename to vendor/PicoFeed/Rules/.theguardian.com.php index ddb0b0a..6d8843d 100644 --- a/vendor/PicoFeed/Rules/www.theguardian.com.php +++ b/vendor/PicoFeed/Rules/.theguardian.com.php @@ -5,5 +5,6 @@ return array( '//div[@id="article-wrapper"]', ), 'strip' => array( + '//*[contains(@class, "promo")]', ), ); diff --git a/vendor/PicoFeed/Rules/.wired.com.php b/vendor/PicoFeed/Rules/.wired.com.php new file mode 100644 index 0000000..6e25f2c --- /dev/null +++ b/vendor/PicoFeed/Rules/.wired.com.php @@ -0,0 +1,19 @@ + 'http://www.wired.com/gamelife/2013/09/ouya-free-the-games/', + 'body' => array( + '//div[@class="entry"]', + ), + 'strip' => array( + '//script', + '//style', + '//*[@id="linker_widget"]', + '//*[contains(@class, "bio")]', + '//*[contains(@class, "entry-footer")]', + '//*[contains(@class, "mobify_backtotop_link")]', + '//*[contains(@class, "gallery-navigation")]', + '//*[contains(@class, "gallery-thumbnail")]', + '//img[contains(@src, "1x1")]', + '//a[contains(@href, "creativecommons")]', + ), +); diff --git a/vendor/PicoFeed/Rules/plus.google.com.php b/vendor/PicoFeed/Rules/plus.google.com.php new file mode 100644 index 0000000..d18e1db --- /dev/null +++ b/vendor/PicoFeed/Rules/plus.google.com.php @@ -0,0 +1,7 @@ + 'https://plus.google.com/+LarryPage/posts/Lh8SKC6sED1', + 'body' => array( + '//div[@role="article"]/div[contains(@class, "eE")]', + ), +); diff --git a/vendor/PicoFeed/Rules/www.businessweek.com.php b/vendor/PicoFeed/Rules/www.businessweek.com.php new file mode 100644 index 0000000..1ac90a3 --- /dev/null +++ b/vendor/PicoFeed/Rules/www.businessweek.com.php @@ -0,0 +1,11 @@ + 'http://www.businessweek.com/articles/2013-09-18/elon-musks-hyperloop-will-work-says-some-very-smart-software', + 'body' => array( + '//div[@id="lead_graphic"]', + '//div[@id="article_body"]', + ), + 'strip' => array( + '//*[contains(@class, "related_item")]', + ), +); diff --git a/vendor/PicoFeed/Rules/www.lepoint.fr.php b/vendor/PicoFeed/Rules/www.lepoint.fr.php new file mode 100644 index 0000000..27b80e7 --- /dev/null +++ b/vendor/PicoFeed/Rules/www.lepoint.fr.php @@ -0,0 +1,16 @@ + 'http://www.lepoint.fr/c-est-arrive-aujourd-hui/19-septembre-1783-pour-la-premiere-fois-un-mouton-un-canard-et-un-coq-s-envoient-en-l-air-devant-louis-xvi-18-09-2012-1507704_494.php', + 'body' => array( + '//article', + ), + 'strip' => array( + '//script', + '//style', + '//*[contains(@class, "info_article")]', + '//*[contains(@class, "fildariane_titre")]', + '//*[contains(@class, "entete2_article")]', + '//*[contains(@class, "signature_article")]', + '//*[contains(@id, "share")]', + ) +); \ No newline at end of file diff --git a/vendor/PicoFeed/Rules/www.npr.org.php b/vendor/PicoFeed/Rules/www.npr.org.php new file mode 100644 index 0000000..f2bc1b6 --- /dev/null +++ b/vendor/PicoFeed/Rules/www.npr.org.php @@ -0,0 +1,15 @@ + 'http://www.npr.org/blogs/thesalt/2013/09/17/223345977/auto-brewery-syndrome-apparently-you-can-make-beer-in-your-gut', + 'body' => array( + '//div[@id="storytext"]', + ), + 'strip' => array( + '//script', + '//style', + '//*[@class="bucket img"]', + '//*[@class="creditwrap"]', + '//*[@class="captionwrap"]', + '//*[contains(@class, "enlargebtn")]', + ), +);