Improve igen.fr grabber rule
This commit is contained in:
parent
028bfb7499
commit
dfcc574530
1
vendor/PicoFeed/Clients/Curl.php
vendored
1
vendor/PicoFeed/Clients/Curl.php
vendored
@ -84,6 +84,7 @@ class Curl extends \PicoFeed\Client
|
||||
Logging::log(\get_called_class().' cURL dns lookup time: '.curl_getinfo($ch, CURLINFO_NAMELOOKUP_TIME));
|
||||
Logging::log(\get_called_class().' cURL connect time: '.curl_getinfo($ch, CURLINFO_CONNECT_TIME));
|
||||
Logging::log(\get_called_class().' cURL speed download: '.curl_getinfo($ch, CURLINFO_SPEED_DOWNLOAD));
|
||||
Logging::log(\get_called_class().' cURL effective url: '.curl_getinfo($ch, CURLINFO_EFFECTIVE_URL));
|
||||
|
||||
if (curl_errno($ch)) {
|
||||
|
||||
|
4
vendor/PicoFeed/Rules/.igen.fr.php
vendored
4
vendor/PicoFeed/Rules/.igen.fr.php
vendored
@ -2,10 +2,8 @@
|
||||
return array(
|
||||
'test_url' => 'http://www.igen.fr/iphone/ios-7-cree-des-milliers-de-requetes-fantomes-sur-le-web-110130',
|
||||
'body' => array(
|
||||
'//div[contains(@id, "news")]',
|
||||
'//*[starts-with(@id, "news")]/*[contains(@class, "content")]'
|
||||
),
|
||||
'strip' => array(
|
||||
'//*[contains(@class, "submitted")]',
|
||||
'//*[contains(@class, "clear-block")]',
|
||||
),
|
||||
);
|
Loading…
Reference in New Issue
Block a user