summaryrefslogtreecommitdiffstats
path: root/vendor/fguillot/picofeed/lib/PicoFeed/Rules/www.bbc.co.uk.php
blob: 1996c3d4d3288a4d181f90d2a4051aa39b9e24ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php

return array(
    'grabber' => array(
        '%.*%' => array(
            'test_url' => 'http://www.bbc.co.uk/news/world-middle-east-23911833',
            'body' => array(
                '//div[@class="story-body__inner"] | //div[@class="article"]',
                '//div[@class="indPost"]',
            ),
            'strip' => array(
                '//form',
                '//div[@id="headline"]',
                '//*[@class="warning"]',
                '//span[@class="off-screen"]',
                '//span[@class="story-image-copyright"]',
                '//ul[@class="story-body__unordered-list"]',
                '//div[@class="ad_wrapper"]',
                '//div[@id="article-sidebar"]',
                '//div[@class="data-table-outer"]',
                '//*[@class="story-date"]',
                '//*[@class="story-header"]',
                '//figure[contains(@class,"has-caption")]',
                '//*[@class="story-related"]',
                '//*[contains(@class, "byline")]',
                '//p[contains(@class, "media-message")]',
                '//*[contains(@class, "story-feature")]',
                '//*[@id="video-carousel-container"]',
                '//*[@id="also-related-links"]',
                '//*[contains(@class, "share") or contains(@class, "hidden") or contains(@class, "hyper")]',
            ),
        ),
    ),
);