summaryrefslogtreecommitdiff
path: root/heise.de.txt
diff options
context:
space:
mode:
authorFiveFilters.org <fivefilters@fivefilters.org>2014-08-31 18:12:33 +0200
committerFiveFilters.org <fivefilters@fivefilters.org>2014-08-31 18:12:33 +0200
commit835c73e4773df6086249d34ff4bfd4c491cc5a2c (patch)
tree699604f6c40a118e6f995e52eb9ed7a0079270ea /heise.de.txt
parente37feb66714437fff639340a56023a3fab0ccf57 (diff)
parentc159266a63cd8145f6007076becb53305c1df84a (diff)
downloadftr-site-config-835c73e4773df6086249d34ff4bfd4c491cc5a2c.tar.gz
ftr-site-config-835c73e4773df6086249d34ff4bfd4c491cc5a2c.zip
Merge pull request #45 from zinnober/contributions
Updates for heise.de and golem.de
Diffstat (limited to 'heise.de.txt')
-rwxr-xr-x[-rw-r--r--]heise.de.txt43
1 files changed, 39 insertions, 4 deletions
diff --git a/heise.de.txt b/heise.de.txt
index c51af56..9433104 100644..100755
--- 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(<h5>): <h2>
+replace_string(</h5>): </h2>
+replace_string(<span class="bild_rechts"): <p
+replace_string(<div class="heisebox">): <blockquote>
+
+
+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