This commit is contained in:
Bernhard Posselt 2016-01-16 18:28:11 +01:00
Родитель d135f8e913
Коммит f7d566c54c
28 изменённых файлов: 346 добавлений и 78 удалений

8
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",

8
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"
],

Просмотреть файл

@ -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"]',
),
),
),

Просмотреть файл

@ -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"]',
),
),
),

Просмотреть файл

@ -0,0 +1,15 @@
<?php
return array(
'grabber' => 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")]',
),
),
),
);

Просмотреть файл

@ -0,0 +1,22 @@
<?php
return array(
'grabber' => 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"]',
),
),
),
);

19
vendor/fguillot/picofeed/lib/PicoFeed/Rules/fossbytes.com.php поставляемый Normal file
Просмотреть файл

@ -0,0 +1,19 @@
<?php
return array(
'grabber' => 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"]',
),
),
),
);

Просмотреть файл

@ -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"]',
),
),
),

10
vendor/fguillot/picofeed/lib/PicoFeed/Rules/koreatimes.php поставляемый Normal file
Просмотреть файл

@ -0,0 +1,10 @@
<?php
return array(
'grabber' => 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"]',
),
),
);

Просмотреть файл

@ -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',
),

Просмотреть файл

@ -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',
),
),
),

15
vendor/fguillot/picofeed/lib/PicoFeed/Rules/milwaukeenns.php поставляемый Normal file
Просмотреть файл

@ -0,0 +1,15 @@
<?php
return array(
'grabber' => 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"]',
),
),
),
);

19
vendor/fguillot/picofeed/lib/PicoFeed/Rules/mlb.com.php поставляемый Normal file
Просмотреть файл

@ -0,0 +1,19 @@
<?php
return array(
'grabber' => 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"]',
),
),
),
);

Просмотреть файл

@ -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"]',
),
),
),

16
vendor/fguillot/picofeed/lib/PicoFeed/Rules/onhax.net.php поставляемый Normal file
Просмотреть файл

@ -0,0 +1,16 @@
<?php
return array(
'grabber' => 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"]',
),
),
),
);

22
vendor/fguillot/picofeed/lib/PicoFeed/Rules/onmilwaukee.php поставляемый Normal file
Просмотреть файл

@ -0,0 +1,22 @@
<?php
return array(
'grabber' => 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"]',
),
),
),
);

Просмотреть файл

@ -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"]',
),
),
);

Просмотреть файл

@ -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"]',
),
),
),

28
vendor/fguillot/picofeed/lib/PicoFeed/Rules/thenewslens.com.php поставляемый Normal file
Просмотреть файл

@ -0,0 +1,28 @@
<?php
return array(
'grabber' => 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"]',
),
),
),
);

Просмотреть файл

@ -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',
),
),
),

Просмотреть файл

@ -0,0 +1,15 @@
<?php
return array(
'grabber' => 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(
),
),
),
);

Просмотреть файл

@ -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"]',

24
vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.bgr.in.php поставляемый Normal file
Просмотреть файл

@ -0,0 +1,24 @@
<?php
return array(
'grabber' => 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"]',
),
),
),
);

Просмотреть файл

@ -0,0 +1,18 @@
<?php
return array(
'grabber' => 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"]',
),
),
),
);

Просмотреть файл

@ -0,0 +1,15 @@
<?php
return array(
'grabber' => 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"]',
),
),
),
);

Просмотреть файл

@ -0,0 +1,19 @@
<?php
return array(
'grabber' => 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"]',
),
),
),
);

Просмотреть файл

@ -0,0 +1,15 @@
<?php
return array(
'grabber' => 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"]',
),
),
),
);

Просмотреть файл

@ -17,6 +17,7 @@ return array(
'//div[contains(@class,"loader")]',
'//p[@class="photoDetails"]',
'//div[@class="thumbnailSlider"]',
'//div[@class="shortcodeGalleryWrapper"]',
),
),
),