summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzinnober <cinnabarit@mailbox.org>2014-08-26 07:17:39 +0200
committerzinnober <cinnabarit@mailbox.org>2014-08-26 07:17:39 +0200
commit433668af6e55f5d51af762c27fe0ab9a9dfa3da8 (patch)
treec0be2194c47becf608ae7394962bc479673d7c3a
parentd229c69ddd2ea3dbb6e8e171e711dd7f69905054 (diff)
downloadftr-site-config-433668af6e55f5d51af762c27fe0ab9a9dfa3da8.tar.gz
ftr-site-config-433668af6e55f5d51af762c27fe0ab9a9dfa3da8.zip
Major update for 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