From f7d566c54c8cb80dc5425eb8d7d48ea02196bf7e Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Sat, 16 Jan 2016 18:28:11 +0100 Subject: [PATCH] update picofeed --- composer.lock | 8 +++--- vendor/composer/installed.json | 8 +++--- .../lib/PicoFeed/Rules/arstechnica.com.php | 15 ++++++---- .../PicoFeed/Rules/buenosairesherald.com.php | 11 ++++---- .../lib/PicoFeed/Rules/dailyreporter.com.php | 15 ++++++++++ .../lib/PicoFeed/Rules/foreignpolicy.com.php | 22 +++++++++++++++ .../lib/PicoFeed/Rules/fossbytes.com.php | 19 +++++++++++++ .../lib/PicoFeed/Rules/jsonline.com.php | 26 ++++++++--------- .../lib/PicoFeed/Rules/koreatimes.php | 10 +++++++ .../picofeed/lib/PicoFeed/Rules/linux.org.php | 4 +-- .../lib/PicoFeed/Rules/linuxinsider.com.php | 15 +++++----- .../lib/PicoFeed/Rules/milwaukeenns.php | 15 ++++++++++ .../picofeed/lib/PicoFeed/Rules/mlb.com.php | 19 +++++++++++++ .../lib/PicoFeed/Rules/networkworld.com.php | 17 +++++------ .../picofeed/lib/PicoFeed/Rules/onhax.net.php | 16 +++++++++++ .../lib/PicoFeed/Rules/onmilwaukee.php | 22 +++++++++++++++ .../lib/PicoFeed/Rules/securityfocus.com.php | 4 +-- .../lib/PicoFeed/Rules/soundandvision.com.php | 20 ++++++------- .../lib/PicoFeed/Rules/thenewslens.com.php | 28 +++++++++++++++++++ .../lib/PicoFeed/Rules/thestandard.com.hk.php | 22 +++++++-------- .../Rules/timesofindia.indiatimes.com.php | 15 ++++++++++ .../lib/PicoFeed/Rules/www.bbc.co.uk.php | 1 + .../lib/PicoFeed/Rules/www.bgr.in.php | 24 ++++++++++++++++ .../Rules/www.fakingnews.firstpost.com.php | 18 ++++++++++++ .../lib/PicoFeed/Rules/www.howtogeek.com.php | 15 ++++++++++ .../lib/PicoFeed/Rules/www.makeuseof.com.php | 19 +++++++++++++ .../lib/PicoFeed/Rules/www.oneindia.com.php | 15 ++++++++++ .../picofeed/lib/PicoFeed/Rules/zdnet.com.php | 1 + 28 files changed, 346 insertions(+), 78 deletions(-) create mode 100644 vendor/fguillot/picofeed/lib/PicoFeed/Rules/dailyreporter.com.php create mode 100644 vendor/fguillot/picofeed/lib/PicoFeed/Rules/foreignpolicy.com.php create mode 100644 vendor/fguillot/picofeed/lib/PicoFeed/Rules/fossbytes.com.php create mode 100644 vendor/fguillot/picofeed/lib/PicoFeed/Rules/koreatimes.php create mode 100644 vendor/fguillot/picofeed/lib/PicoFeed/Rules/milwaukeenns.php create mode 100644 vendor/fguillot/picofeed/lib/PicoFeed/Rules/mlb.com.php create mode 100644 vendor/fguillot/picofeed/lib/PicoFeed/Rules/onhax.net.php create mode 100644 vendor/fguillot/picofeed/lib/PicoFeed/Rules/onmilwaukee.php create mode 100644 vendor/fguillot/picofeed/lib/PicoFeed/Rules/thenewslens.com.php create mode 100644 vendor/fguillot/picofeed/lib/PicoFeed/Rules/timesofindia.indiatimes.com.php create mode 100644 vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.bgr.in.php create mode 100644 vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.fakingnews.firstpost.com.php create mode 100644 vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.howtogeek.com.php create mode 100644 vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.makeuseof.com.php create mode 100644 vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.oneindia.com.php diff --git a/composer.lock b/composer.lock index b3552cf30..8d5a6466b 100644 --- a/composer.lock +++ b/composer.lock @@ -57,12 +57,12 @@ "source": { "type": "git", "url": "https://github.com/fguillot/picoFeed.git", - "reference": "0551e86dbaa77b997d08df9c3fc456875df6efa0" + "reference": "502c2b740fee15e67e047ebe169965689eff1331" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/fguillot/picoFeed/zipball/0551e86dbaa77b997d08df9c3fc456875df6efa0", - "reference": "0551e86dbaa77b997d08df9c3fc456875df6efa0", + "url": "https://api.github.com/repos/fguillot/picoFeed/zipball/502c2b740fee15e67e047ebe169965689eff1331", + "reference": "502c2b740fee15e67e047ebe169965689eff1331", "shasum": "" }, "require": { @@ -97,7 +97,7 @@ ], "description": "Modern library to handle RSS/Atom feeds", "homepage": "https://github.com/fguillot/picoFeed", - "time": "2016-01-08 20:39:51" + "time": "2016-01-14 13:06:11" }, { "name": "pear/net_url2", diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 17aa54be6..32ed14d4e 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -209,12 +209,12 @@ "source": { "type": "git", "url": "https://github.com/fguillot/picoFeed.git", - "reference": "0551e86dbaa77b997d08df9c3fc456875df6efa0" + "reference": "502c2b740fee15e67e047ebe169965689eff1331" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/fguillot/picoFeed/zipball/0551e86dbaa77b997d08df9c3fc456875df6efa0", - "reference": "0551e86dbaa77b997d08df9c3fc456875df6efa0", + "url": "https://api.github.com/repos/fguillot/picoFeed/zipball/502c2b740fee15e67e047ebe169965689eff1331", + "reference": "502c2b740fee15e67e047ebe169965689eff1331", "shasum": "" }, "require": { @@ -229,7 +229,7 @@ "suggest": { "ext-curl": "PicoFeed will use cURL if present" }, - "time": "2016-01-08 20:39:51", + "time": "2016-01-14 13:06:11", "bin": [ "picofeed" ], diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/arstechnica.com.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/arstechnica.com.php index 667b90ad1..d4919a2da 100644 --- a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/arstechnica.com.php +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/arstechnica.com.php @@ -5,13 +5,18 @@ return array( '%.*%' => array( 'test_url' => 'http://arstechnica.com/tech-policy/2015/09/judge-warners-2m-happy-birthday-copyright-is-bogus/', 'body' => array( - '//section[@id="article-guts"]', - '//div[@class="superscroll-content show"]', + '//header/h2', + '//section[@id="article-guts"]', + '//div[@class="superscroll-content show"]', + '//div[@class="gallery"]', ), + 'next_page' => '//span[@class="numbers"]/a', 'strip' => array( - '//figcaption', - '//aside', - '//div[@class="article-expander"]', + '//figcaption', + '//div[@class="post-meta"]', + '//div[@class="gallery-image-credit"]', + '//aside', + '//div[@class="article-expander"]', ), ), ), diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/buenosairesherald.com.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/buenosairesherald.com.php index acec44e51..7a6b33f22 100644 --- a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/buenosairesherald.com.php +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/buenosairesherald.com.php @@ -5,14 +5,13 @@ return array( '%.*%' => array( 'test_url' => 'http://www.buenosairesherald.com/article/199344/manzur-named-next-governor-of-tucum%C3%A1n', 'body' => array( - '//div[@class="img_despliege"]', - '//div[@id="nota_despliegue"]', + '//div[@style="float:none"]', ), 'strip' => array( - '//script', - '//span[@id="fecha"]', - '//h1', - '//div[@class="autor"]', + '//div[contains(@class, "bz_alias_short_desc_container"]', + '//td[@id="bz_show_bug_column_1"]', + '//table[@id="attachment_table"]', + '//table[@class="bz_comment_table"]', ), ), ), diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/dailyreporter.com.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/dailyreporter.com.php new file mode 100644 index 000000000..2956eabf8 --- /dev/null +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/dailyreporter.com.php @@ -0,0 +1,15 @@ + array( + '%.*%' => array( + 'test_url' => 'http://dailyreporter.com/2016/01/09/us-supreme-court-case-could-weaken-government-workers-unions/', + 'body' => array( + '//div[contains(@class, "entry-content")]', + ), + 'strip' => array( + '//*[contains(@class, "sharedaddy")]', + ), + ), + ), +); diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/foreignpolicy.com.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/foreignpolicy.com.php new file mode 100644 index 000000000..6b0eb7864 --- /dev/null +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/foreignpolicy.com.php @@ -0,0 +1,22 @@ + array( + '%.*%' => array( + 'test_url' => 'http://foreignpolicy.com/2016/01/09/networking-giant-pulls-nsa-linked-code-exploited-by-hackers/', + 'body' => array( + '//article', + ), + 'strip' => array( + '//div[@id="post-category"]', + '//div[@id="desktop-right"]', + '//h1', + '//section[@class="article-meta"]', + '//div[@class="side-panel-wrapper"]', + '//*[contains(@class, "share-")]', + '//*[contains(@id, "taboola-")]', + '//div[@class="comments"]', + ), + ), + ), +); diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/fossbytes.com.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/fossbytes.com.php new file mode 100644 index 000000000..cc011cd02 --- /dev/null +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/fossbytes.com.php @@ -0,0 +1,19 @@ + array( + '%.*%' => array( + 'test_url' => 'http://fossbytes.com/fbi-hacked-1000-computers-to-shut-down-largest-child-pornography-site-on-the-dark-web/', + 'body' => array( + '//div[@class="entry-inner"]', + ), + 'strip' => array( + '//*[@class="at-above-post addthis_default_style addthis_toolbox at-wordpress-hide"]', + '//*[@class="at-below-post addthis_default_style addthis_toolbox at-wordpress-hide"]', + '//*[@class="at-below-post-recommended addthis_default_style addthis_toolbox at-wordpress-hide"]', + '//*[@class="code-block code-block-12 ai-desktop"]', + '//*[@class="code-block code-block-13 ai-tablet-phone"]', + ), + ), + ), +); \ No newline at end of file diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/jsonline.com.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/jsonline.com.php index 2fdc43297..82322f785 100644 --- a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/jsonline.com.php +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/jsonline.com.php @@ -5,23 +5,19 @@ return array( '%.*%' => array( 'test_url' => 'http://www.jsonline.com/news/usandworld/as-many-as-a-million-expected-for-popes-last-mass-in-us-b99585180z1-329688131.html', 'body' => array( - '//div[@id="article"]', - '//div[@id="mainContent"]', + '//div[@id="mainContent"]', ), 'strip' => array( - '//div[@class="storyTimestamp"]', - '//img[@class="floatLeft"]', - '//div[@class="overlineUpper"]', - '//div[@class="updated"]', - '//div[@class="columnist_link"]', - '//div[@class="side_container_01"]', - '//div[@class="credit"]', - '//h1', - '//h2', - '//h4', - '//ul', - '//div[contains(@class, "footer-pkg")]', - '//img[contains(@src,"analytics")]', + '//script', + '//h1', + '//h4[@class="credit"]', + '//div[@class="columnist_container"]', + '//div[@class="storyTimestamp"]', + '//ul[@id="sharing-tools"]', + '//div[@class="title"]', + '//img[@class="floatLeft"]', + '//div[@class="first feature"]', + '//div[@class="collateral_article_content"]', ), ), ), diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/koreatimes.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/koreatimes.php new file mode 100644 index 000000000..921f8f991 --- /dev/null +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/koreatimes.php @@ -0,0 +1,10 @@ + array( + '%.*%' => array( + 'test_url' => 'http://www.koreatimes.co.kr/www/news/nation/2015/12/116_192409.html', + 'body' => '//div[@class="view_page_news_article_wrapper"]', + ), + ), +); diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/linux.org.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/linux.org.php index 26bddbf33..ac74d5975 100644 --- a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/linux.org.php +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/linux.org.php @@ -4,9 +4,7 @@ return array( 'grabber' => array( '%.*%' => array( 'test_url' => 'http://www.linux.org/threads/lua-the-scripting-interpreter.8352/', - 'body' => array( - '//div[@class="messageContent"]', - ), + 'body' => '//div[@class="messageContent"]', 'strip' => array( '//aside', ), diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/linuxinsider.com.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/linuxinsider.com.php index 50595b0f5..ab345e735 100644 --- a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/linuxinsider.com.php +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/linuxinsider.com.php @@ -4,14 +4,15 @@ return array( 'grabber' => array( '%.*%' => array( 'test_url' => 'http://www.linuxinsider.com/story/82526.html?rss=1', - 'body' => array( - '//div[@id="story-graphic-xlarge"]', - '//div[@id="story-body"]', - ), + 'body' => '//div[@id="story"]', 'strip' => array( - '//script', - '//div[@class="story-advertisement"]', - '//iframe', + '//script', + '//h1]', + '//div[@id="story-toolbox1"]', + '//div[@id="story-byline"]', + '//div[@id="story"]/p', + '//div[@class="story-advertisement"]', + '//iframe', ), ), ), diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/milwaukeenns.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/milwaukeenns.php new file mode 100644 index 000000000..58677a688 --- /dev/null +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/milwaukeenns.php @@ -0,0 +1,15 @@ + array( + '%.*%' => array( + 'test_url' => 'http://milwaukeenns.org/2016/01/08/united-way-grant-enables-sdc-to-restore-free-tax-assistance-program/', + 'body' => array( + '//div[@class="pf-content"]', + ), + 'strip' => array( + '//div[@class="printfriendly"]', + ), + ), + ), +); diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/mlb.com.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/mlb.com.php new file mode 100644 index 000000000..3646aa4b1 --- /dev/null +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/mlb.com.php @@ -0,0 +1,19 @@ + array( + '%.*%' => array( + 'test_url' => 'http://m.brewers.mlb.com/news/article/161364798', + 'body' => array( + '//article', + ), + 'strip' => array( + '//div[@class="article-top"]', + '//div[contains(@class, "contributor-bottom")]', + '//p[@class="tagline"]', + '//div[contains(@class, "social-")]', + '//div[@class="button-wrap"]', + ), + ), + ), +); diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/networkworld.com.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/networkworld.com.php index 94f346ee6..e5485f60b 100644 --- a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/networkworld.com.php +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/networkworld.com.php @@ -3,17 +3,18 @@ return array( 'grabber' => array( '%.*%' => array( - 'test_url' => 'http://www.networkworld.com/article/2986764/smartphones/samsung-tried-to-troll-apple-fans-waiting-in-line-for-the-iphone-6s.html#tk.rss_all', + 'test_url' => 'http://www.networkworld.com/article/3020585/security/the-incident-response-fab-five.html', 'body' => array( - '//figure/img[@class="hero-img"]', - '//section[@class="deck"]', - '//div[@itemprop="articleBody"] || //div[@itemprop="reviewBody"]', - '//div[@class="carousel-inside-crop"]', + '//figure/img[@class="hero-img"]', + '//section[@class="deck"]', + '//div[@itemprop="articleBody"] | //div[@itemprop="reviewBody"]', + '//div[@class="carousel-inside-crop"]', ), 'strip' => array( - '//aside', - '//div[@class="credit"]', - '//div[@class="view-large"]', + '//script', + '//aside', + '//div[@class="credit"]', + '//div[@class="view-large"]', ), ), ), diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/onhax.net.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/onhax.net.php new file mode 100644 index 000000000..d2e289426 --- /dev/null +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/onhax.net.php @@ -0,0 +1,16 @@ + array( + '%.*%' => array( + 'test_url' => 'http://onhax.net/process-lasso-8-9-1-4-pro-key-portable-is-here-latest', + 'body' => array( + '//div[@class="postcontent"]', + ), + 'strip' => array( + '//*[@class="sharedaddy sd-sharing-enabled"]', + '//*[@class="yarpp-related"]', + ), + ), + ), +); \ No newline at end of file diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/onmilwaukee.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/onmilwaukee.php new file mode 100644 index 000000000..75de01753 --- /dev/null +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/onmilwaukee.php @@ -0,0 +1,22 @@ + array( + '%.*%' => array( + 'test_url' => 'http://onmilwaukee.com/movies/articles/downerspelunking.html', + 'body' => '//article[@class="show"]', + 'strip' => array( + '//h1', + '//div[contains(@class, "-ad")]', + '//div[contains(@class, "_ad")]', + '//div[@id="pub_wrapper"]', + '//div[@class="share_tools"]', + '//div[@class="clearfix"]', + '//div[contains(@class,"image_control")]', + '//section[@class="ribboned"]', + '//div[contains(@class,"sidebar")]', + '//aside[@class="article_tag_list"]', + ), + ), + ), +); diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/securityfocus.com.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/securityfocus.com.php index fd777463a..a12720de8 100644 --- a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/securityfocus.com.php +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/securityfocus.com.php @@ -4,9 +4,7 @@ return array( 'grabber' => array( '%.*%' => array( 'test_url' => 'http://www.securityfocus.com/news/11569?ref=rss', - 'body' => array( - '//div[@class="expanded"]', - ), + 'body' => '//div[@class="expanded"]', ), ), ); diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/soundandvision.com.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/soundandvision.com.php index 6e9f2156a..08bec4d85 100644 --- a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/soundandvision.com.php +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/soundandvision.com.php @@ -4,18 +4,16 @@ return array( 'grabber' => array( '%.*%' => array( 'test_url' => 'http://www.soundandvision.com/content/james-guthrie-mixing-roger-waters-and-pink-floyd-51', - 'body' => array( - '//div[@id="left"]', - ), + 'body' => '//div[@id="left"]', 'strip' => array( - '//div[@class="meta"]', - '//div[@class="ratingsbox"]', - '//h1', - '//h2', - '//addthis', - '//comment-links', - '//div[@class="book-navigation"]', - '//div[@class="comment-links"]', + '//div[@class="meta"]', + '//div[@class="ratingsbox"]', + '//h1', + '//h2', + '//addthis', + '//comment-links', + '//div[@class="book-navigation"]', + '//div[@class="comment-links"]', ), ), ), diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/thenewslens.com.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/thenewslens.com.php new file mode 100644 index 000000000..359320e36 --- /dev/null +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/thenewslens.com.php @@ -0,0 +1,28 @@ + array( + '%.*%' => array( + 'test_url' => 'http://international.thenewslens.com/post/255032/', + 'body' => array( + '//article/main[contains(@class, "content-post")]', + ), + 'strip' => array( + '//div[@class="photo-credit"]', + '//p[@align="center"]', + '//div[@class="clearfix"]', + '//div[@class="authorZone"]', + '//style', + '//div[@id="ttsbox"]', + '//div[@id="ttscontrols"]', + '//div[@class="author-info"]', + '//div[contains(@id, "-ad")]', + '//div[@style="font-size:small;margin:3px 0 0 0;vertical-align:top;line-height:24px;"]', + '//div[contains(@class, "hidden-xs")]', + '//div[contains(@class, "visible-xs")]', + '//div[contains(@class, "visible-lg")]', + '//a[@name="comment-panel"]', + ), + ), + ), +); diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/thestandard.com.hk.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/thestandard.com.hk.php index 7f3281494..d43db2c81 100644 --- a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/thestandard.com.hk.php +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/thestandard.com.hk.php @@ -4,19 +4,17 @@ return array( 'grabber' => array( '%.*%' => array( 'test_url' => 'http://www.thestandard.com.hk/breaking_news_detail.asp?id=67156', - 'body' => array( - '//span[@class="bodyCopy"]', - ), + 'body' => '//div[contains(@class,"storyBody")]', 'strip' => array( - '//script', - '//br', - '//map[@name="gif_bar"]', - '//img[@usemap=""gif_bar"]', - '//a', - '//span[@class="bodyHeadline"]', - '//i', - '//b', - '//table', + '//script', + '//br', + '//map[@name="gif_bar"]', + '//img[contains(@usemap,"gif_bar")]', + '//a', + '//span[@class="bodyHeadline"]', + '//i', + '//b', + '//table', ), ), ), diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/timesofindia.indiatimes.com.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/timesofindia.indiatimes.com.php new file mode 100644 index 000000000..873a46d78 --- /dev/null +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/timesofindia.indiatimes.com.php @@ -0,0 +1,15 @@ + array( + '%.*%' => array( + 'test_url' => 'http://timesofindia.indiatimes.com/city/mangaluru/Adani-UPCL-to-release-CSR-grant-of-Rs-3-74-crore-to-YellurGram-Panchayat/articleshow/50512116.cms', + 'body' => array( + '//div[@class="article_content clearfix"]', + '//section[@class="highlight clearfix"]', + ), + 'strip' => array( + ), + ), + ), +); \ No newline at end of file diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.bbc.co.uk.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.bbc.co.uk.php index 52b5f1267..278ddead7 100644 --- a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.bbc.co.uk.php +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.bbc.co.uk.php @@ -14,6 +14,7 @@ return array( '//*[@class="warning"]', '//span[@class="off-screen"]', '//span[@class="story-image-copyright"]', + '//ul[@class="story-body__unordered-list"]', '//div[@class="ad_wrapper"]', '//div[@id="article-sidebar"]', '//div[@class="data-table-outer"]', diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.bgr.in.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.bgr.in.php new file mode 100644 index 000000000..ee95495fd --- /dev/null +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.bgr.in.php @@ -0,0 +1,24 @@ + array( + '%.*%' => array( + 'test_url' => 'http://www.bgr.in/news/xiaomi-redmi-3-with-13-megapixel-camera-snapdragon-616-launched-price-specifications-and-features/', + 'body' => array( + '//div[@class="article-content"]', + ), + 'strip' => array( + '//*[@class="article-meta"]', + '//*[@class="contentAdsense300"]', + '//*[@class="iwpl-social-hide"]', + '//iframe[@class="iframeads"]', + '//*[@class="disqus_thread"]', + '//*[@class="outb-mobile OUTBRAIN"]', + '//*[@class="wdt_smart_alerts"]', + '//*[@class="footnote"]', + '//*[@id="gadget-widget"]', + '//header[@class="article-title entry-header"]', + ), + ), + ), +); \ No newline at end of file diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.fakingnews.firstpost.com.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.fakingnews.firstpost.com.php new file mode 100644 index 000000000..4ea41661d --- /dev/null +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.fakingnews.firstpost.com.php @@ -0,0 +1,18 @@ + array( + '%.*%' => array( + 'test_url' => 'http://www.fakingnews.firstpost.com/2016/01/engineering-student-creates-record-in-a-decade-becomes-the-first-to-completely-exhaust-ball-pen-refill/', + 'body' => array( + '//div[@class="entry"]', + ), + 'strip' => array( + '//*[@class="socialshare_bar"]', + '//*[@class="authorbox"]', + '//*[@class="cf5_rps"]', + '//*[@class="60563 fb-comments fb-social-plugin"]', + ), + ), + ), +); \ No newline at end of file diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.howtogeek.com.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.howtogeek.com.php new file mode 100644 index 000000000..39ac0c5e8 --- /dev/null +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.howtogeek.com.php @@ -0,0 +1,15 @@ + array( + '%.*%' => array( + 'test_url' => 'http://www.howtogeek.com/235283/what-is-a-wireless-hard-drive-and-should-i-get-one/', + 'body' => array( + '//div[@class="thecontent"]', + ), + 'strip' => array( + '//*[@class="relatedside"]', + ), + ), + ), +); \ No newline at end of file diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.makeuseof.com.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.makeuseof.com.php new file mode 100644 index 000000000..d5d3bf454 --- /dev/null +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.makeuseof.com.php @@ -0,0 +1,19 @@ + array( + '%.*%' => array( + 'test_url' => 'http://www.makeuseof.com/tag/having-problems-with-audio-in-windows-10-heres-a-likely-fix/', + 'body' => array( + '//div[@class="entry"]', + ), + 'strip' => array( + '//*[@class="new_sharebar"]', + '//*[@class="author"]', + '//*[@class="wdt_grouvi"]', + '//*[@class="wdt_smart_alerts"]', + '//*[@class="modal fade grouvi"]', + ), + ), + ), +); \ No newline at end of file diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.oneindia.com.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.oneindia.com.php new file mode 100644 index 000000000..810f1381b --- /dev/null +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.oneindia.com.php @@ -0,0 +1,15 @@ + array( + '%.*%' => array( + 'test_url' => 'http://www.oneindia.com/india/b-luru-govt-likely-remove-word-eunuch-from-sec-36-a-karnataka-police-act-1981173.html', + 'body' => array( + '//div[@class="ecom-ad-content"]', + ), + 'strip' => array( + '//*[@id="view_cmtns"]', + ), + ), + ), +); \ No newline at end of file diff --git a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/zdnet.com.php b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/zdnet.com.php index d9c81bd0c..aece5e513 100644 --- a/vendor/fguillot/picofeed/lib/PicoFeed/Rules/zdnet.com.php +++ b/vendor/fguillot/picofeed/lib/PicoFeed/Rules/zdnet.com.php @@ -17,6 +17,7 @@ return array( '//div[contains(@class,"loader")]', '//p[@class="photoDetails"]', '//div[@class="thumbnailSlider"]', + '//div[@class="shortcodeGalleryWrapper"]', ), ), ),