]>
Commit | Line | Data |
---|---|---|
90a1a78b NL |
1 | # Author: zinnober |
2 | # Template should work well with either desktop or mobile version (m.heise.de) | |
4e067cea | 3 | |
90a1a78b NL |
4 | prune: no |
5 | ||
6 | title: //article/h1 | //h1 | |
4e067cea | 7 | date: //p[@class='news_datum'] |
90a1a78b NL |
8 | author: //h4[@class='author'] |
9 | ||
10 | body: //article | //div[@class='meldung_wrapper'] | |
11 | ||
12 | # General cleanup | |
13 | strip: //time | |
14 | strip: //h4[@class='author'] | |
15 | strip: //p[@class='news_datum'] | |
16 | strip: //p[@class='artikel_datum'] | |
17 | strip: //a[contains(@href, 'mailto')] | |
18 | strip_id_or_class: comments | |
19 | strip_id_or_class: ISI_IGNORE | |
20 | strip_id_or_class: clear | |
21 | ||
22 | strip_id_or_class: linkurl_grossbild | |
23 | strip_id_or_class: image-num | |
24 | strip_id_or_class: heisebox_right | |
25 | strip_id_or_class: dossier | |
26 | ||
27 | # Strip Ads | |
28 | strip_id_or_class: ad_ | |
29 | ||
30 | # Some optimizations | |
31 | replace_string(<h5>): <h2> | |
32 | replace_string(</h5>): </h2> | |
33 | replace_string(<span class="bild_rechts"): <p | |
34 | replace_string(<div class="heisebox">): <blockquote> | |
35 | ||
36 | ||
37 | next_page_link: //a[@class='next'] | |
38 | next_page_link: //a[@title='vor'] | |
4e067cea | 39 | |
90a1a78b NL |
40 | test_url: http://www.heise.de/open/artikel/Die-Neuerungen-von-Linux-3-15-2196231.html |
41 | test_url: http://m.heise.de/open/artikel/Die-Neuerungen-von-Linux-3-15-2196231.html | |
42 | test_url: http://www.heise.de/newsticker/meldung/Ueberwachungstechnik-Die-globale-Handy-Standortueberwachung-2301494.html |