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-01-12 02:03:13 +01:00
|
|
|
'body' => '//div[@id="story"]',
|
2015-10-18 23:31:23 +02:00
|
|
|
'strip' => array(
|
2016-01-12 02:03:13 +01:00
|
|
|
'//script',
|
|
|
|
'//h1]',
|
|
|
|
'//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
|
|
|
);
|