2015-10-18 23:31:23 +02:00
|
|
|
<?php
|
2015-10-20 04:49:30 +02:00
|
|
|
|
2015-10-18 23:31:23 +02:00
|
|
|
return array(
|
|
|
|
'grabber' => array(
|
|
|
|
'%.*%' => array(
|
|
|
|
'test_url' => 'http://www.linuxinsider.com/story/82526.html?rss=1',
|
2016-02-10 02:30:07 +01:00
|
|
|
'body' => array(
|
|
|
|
'//div[@id="story"]',
|
|
|
|
),
|
2015-10-18 23:31:23 +02:00
|
|
|
'strip' => array(
|
2016-01-12 02:03:13 +01:00
|
|
|
'//script',
|
2016-02-10 02:30:07 +01:00
|
|
|
'//h1',
|
2016-01-12 02:03:13 +01:00
|
|
|
'//div[@id="story-toolbox1"]',
|
|
|
|
'//div[@id="story-byline"]',
|
|
|
|
'//div[@id="story"]/p',
|
|
|
|
'//div[@class="story-advertisement"]',
|
|
|
|
'//iframe',
|
2015-10-18 23:31:23 +02:00
|
|
|
),
|
2015-10-20 04:49:30 +02:00
|
|
|
),
|
|
|
|
),
|
2015-10-18 23:31:23 +02:00
|
|
|
);
|