summaryrefslogtreecommitdiff
path: root/vendor/miniflux/picofeed/lib/PicoFeed/Rules/.wikipedia.org.php
blob: 7b8f76e5c8f11a9c5ccce7ae5f74cb11f2f6e9d4 (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
<?php
return array(
    'grabber' => array(
        '%.*%' => array(
            'test_url' => 'https://en.wikipedia.org/wiki/Grace_Hopper',
            'body' => array(
                '//div[@id="bodyContent"]',
            ),
            'strip' => array(
                "//div[@id='toc']",
                "//div[@id='catlinks']",
                "//div[@id='jump-to-nav']",
                "//div[@class='thumbcaption']//div[@class='magnify']",
                "//table[@class='navbox']",
                "//table[contains(@class, 'infobox')]",
                "//div[@class='dablink']",
                "//div[@id='contentSub']",
                "//div[@id='siteSub']",
                "//table[@id='persondata']",
                "//table[contains(@class, 'metadata')]",
                "//*[contains(@class, 'noprint')]",
                "//*[contains(@class, 'printfooter')]",
                "//*[contains(@class, 'editsection')]",
                "//*[contains(@class, 'error')]",
                "//span[@title='pronunciation:']",
            ),
        )
    )
);