2015-10-18 17:31:23 -04:00
|
|
|
<?php
|
2015-10-19 22:49:30 -04:00
|
|
|
|
2015-10-18 17:31:23 -04:00
|
|
|
return array(
|
|
|
|
'grabber' => array(
|
|
|
|
'%.*%' => array(
|
|
|
|
'test_url' => 'http://www.upi.com/Top_News/US/2015/09/26/Tech-giants-Hollywood-stars-among-guests-at-state-dinner-for-Chinas-Xi-Jinping/4541443281006/',
|
|
|
|
'body' => array(
|
2016-02-09 20:30:07 -05:00
|
|
|
'//div[@class="img"]',
|
|
|
|
'//div/article[@itemprop="articleBody"]',
|
2015-10-18 17:31:23 -04:00
|
|
|
),
|
|
|
|
'strip' => array(
|
2016-02-09 20:30:07 -05:00
|
|
|
'//div[@align="center"]',
|
2015-10-18 17:31:23 -04:00
|
|
|
),
|
2015-10-19 22:49:30 -04:00
|
|
|
),
|
|
|
|
),
|
2015-10-18 17:31:23 -04:00
|
|
|
);
|