summaryrefslogtreecommitdiff
path: root/vendor/miniflux/picofeed/lib/PicoFeed/Rules/www.npr.org.php
blob: ecc0213a3b2cb5eb1183a63e631fafa1cc145459 (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
<?php
return array(
    'grabber' => array(
        '%.*%' => array(
            'test_url' => 'http://www.npr.org/blogs/thesalt/2013/09/17/223345977/auto-brewery-syndrome-apparently-you-can-make-beer-in-your-gut',
            'body' => array(
                 '//article[contains(@class,"story")]',
            ),
            'strip' => array(
                '//div[@class="story-tools"]',
                '//h3[@class="slug"]',
                '//div[@class="storytitle"]',
                '//div[@id="story-meta"]',
                '//a[@id="mainContent"]',
                '//div[@class="credit-caption"]',
                '//div[@class="enlarge_html"]',
                '//button',
                '//div[contains(@id,"pullquote")]',
                '//div[contains(@class,"internallink")]',
                '//div[contains(@class,"video")]',
                '//div[@class="simplenodate"]',
                '//div[contains(@class,"share-")]',
                '//div[@class="tags"]',
                '//aside'
            ),
        ),
    ),
);