From 90a1a78b1e2f4d40e1d9b8e6f46aca129a9d7bcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Mon, 27 Oct 2014 06:46:13 +0100 Subject: updated site_config --- inc/3rdparty/site_config/standard/heise.de.txt | 45 ++++++++++++++++++++++---- 1 file changed, 39 insertions(+), 6 deletions(-) (limited to 'inc/3rdparty/site_config/standard/heise.de.txt') diff --git a/inc/3rdparty/site_config/standard/heise.de.txt b/inc/3rdparty/site_config/standard/heise.de.txt index 37a4aaf0..9433104b 100755 --- a/inc/3rdparty/site_config/standard/heise.de.txt +++ b/inc/3rdparty/site_config/standard/heise.de.txt @@ -1,9 +1,42 @@ -#second part of single_page_link for telepolis-articles (desktop-version of site) -single_page_link: //p[@class='news_option']/a | //a[@id='tp-druckversion'] +# 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 -test_url: http://www.heise.de/tp/artikel/42/42579/1.html +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.2.3