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.jsonline.com/news/usandworld/as-many-as-a-million-expected-for-popes-last-mass-in-us-b99585180z1-329688131.html',
|
|
|
|
'body' => array(
|
2016-03-31 04:43:08 +02:00
|
|
|
'//div[@id="main"]',
|
2015-10-18 23:31:23 +02:00
|
|
|
),
|
|
|
|
'strip' => array(
|
2016-01-12 02:03:13 +01:00
|
|
|
'//script',
|
2016-03-31 04:43:08 +02:00
|
|
|
'div[contains(@class, "header")]',
|
|
|
|
'div[@class="module--headline"]',
|
|
|
|
'div[@class="main--inlinemeta"]',
|
|
|
|
'div[contains(@class, "leftcol--")]',
|
|
|
|
'p[@class="main--author"]',
|
|
|
|
'div[@class="story--rightcol"]',
|
|
|
|
'div[contains(@class, "footer")]',
|
|
|
|
'div[contains(@class, "rightcol--")]',
|
|
|
|
'div[contains(@class, "author")]',
|
2015-10-18 23:31:23 +02:00
|
|
|
),
|
2015-10-20 04:49:30 +02:00
|
|
|
),
|
|
|
|
),
|
2015-10-18 23:31:23 +02:00
|
|
|
);
|