2015-10-18 23:31:23 +02:00
|
|
|
<?php
|
|
|
|
return array(
|
|
|
|
'grabber' => array(
|
|
|
|
'%.*%' => array(
|
|
|
|
'test_url' => 'http://www.thestandard.com.hk/breaking_news_detail.asp?id=67156',
|
2016-02-10 02:30:07 +01:00
|
|
|
'body' => array(
|
|
|
|
'//table/tr/td/span[@class="bodyCopy"]',
|
|
|
|
),
|
2015-10-18 23:31:23 +02:00
|
|
|
'strip' => array(
|
2016-01-12 02:03:13 +01:00
|
|
|
'//script',
|
|
|
|
'//br',
|
|
|
|
'//map[@name="gif_bar"]',
|
|
|
|
'//img[contains(@usemap,"gif_bar")]',
|
|
|
|
'//a',
|
|
|
|
'//span[@class="bodyHeadline"]',
|
|
|
|
'//i',
|
|
|
|
'//b',
|
|
|
|
'//table',
|
2015-10-18 23:31:23 +02:00
|
|
|
),
|
2015-10-20 04:49:30 +02:00
|
|
|
),
|
|
|
|
),
|
2015-10-18 23:31:23 +02:00
|
|
|
);
|