From 433668af6e55f5d51af762c27fe0ab9a9dfa3da8 Mon Sep 17 00:00:00 2001 From: zinnober Date: Tue, 26 Aug 2014 07:17:39 +0200 Subject: Major update for heise.de.txt --- heise.de.txt | 43 +++++++++++++++++++++++++++++++++++++++---- 1 file changed, 39 insertions(+), 4 deletions(-) mode change 100644 => 100755 heise.de.txt diff --git a/heise.de.txt b/heise.de.txt old mode 100644 new mode 100755 index c51af56..9433104 --- a/heise.de.txt +++ b/heise.de.txt @@ -1,7 +1,42 @@ -single_page_link: //p[@class='news_option']/a +# Author: zinnober +# Template should work well with either desktop or mobile version (m.heise.de) +prune: no + +title: //article/h1 | //h1 date: //p[@class='news_datum'] -title: //h1 -body: //div[@class='meldung_wrapper'] +author: //h4[@class='author'] + +body: //article | //div[@class='meldung_wrapper'] + +# General cleanup +strip: //time +strip: //h4[@class='author'] +strip: //p[@class='news_datum'] +strip: //p[@class='artikel_datum'] +strip: //a[contains(@href, 'mailto')] +strip_id_or_class: comments +strip_id_or_class: ISI_IGNORE +strip_id_or_class: clear + +strip_id_or_class: linkurl_grossbild +strip_id_or_class: image-num +strip_id_or_class: heisebox_right +strip_id_or_class: dossier + +# Strip Ads +strip_id_or_class: ad_ + +# Some optimizations +replace_string(
):

+replace_string(

): +replace_string():
+ + +next_page_link: //a[@class='next'] +next_page_link: //a[@title='vor'] -test_url: http://www.heise.de/newsticker/meldung/Europa-soll-Grundrechteschutz-im-Netz-staerken-1392664.html \ No newline at end of file +test_url: http://www.heise.de/open/artikel/Die-Neuerungen-von-Linux-3-15-2196231.html +test_url: http://m.heise.de/open/artikel/Die-Neuerungen-von-Linux-3-15-2196231.html +test_url: http://www.heise.de/newsticker/meldung/Ueberwachungstechnik-Die-globale-Handy-Standortueberwachung-2301494.html -- cgit v1.3.1