Improve igen.fr grabber rule

This commit is contained in:
Frédéric Guillot 2014-02-23 22:37:10 -05:00
parent 028bfb7499
commit dfcc574530
2 changed files with 2 additions and 3 deletions

View File

@ -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)) {

View File

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