2013-08-31 17:05:45 +02:00
|
|
|
<?php
|
|
|
|
return array(
|
|
|
|
'test_url' => 'http://www.bbc.co.uk/news/world-middle-east-23911833',
|
|
|
|
'body' => array(
|
|
|
|
'//div[@class="story-body"]',
|
2013-09-02 20:04:10 +02:00
|
|
|
'//div[@class="indPost"]'
|
2013-08-31 17:05:45 +02:00
|
|
|
),
|
|
|
|
'strip' => array(
|
|
|
|
'//script',
|
|
|
|
'//form',
|
|
|
|
'//style',
|
2013-09-01 01:05:19 +02:00
|
|
|
'//*[@class="warning"]',
|
2013-08-31 17:05:45 +02:00
|
|
|
'//*[@class="story-date"]',
|
|
|
|
'//*[@class="story-header"]',
|
|
|
|
'//*[@class="story-related"]',
|
|
|
|
'//*[contains(@class, "byline")]',
|
|
|
|
'//*[contains(@class, "story-feature")]',
|
|
|
|
'//*[@id="video-carousel-container"]',
|
|
|
|
'//*[@id="also-related-links"]',
|
|
|
|
'//*[contains(@class, "share") or contains(@class, "hidden") or contains(@class, "hyper")]',
|
|
|
|
)
|
|
|
|
);
|