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.thestandard.com.hk/breaking_news_detail.asp?id=67156',
|
2016-01-12 02:03:13 +01:00
|
|
|
'body' => '//div[contains(@class,"storyBody")]',
|
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
|
|
|
);
|