summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.orf.at.txt25
-rw-r--r--derstandard.at.txt7
-rw-r--r--fm4.orf.at.txt12
-rw-r--r--news.orf.at.txt11
-rw-r--r--orf.at.txt30
-rw-r--r--zeit.de.txt92
6 files changed, 112 insertions, 65 deletions
diff --git a/.orf.at.txt b/.orf.at.txt
new file mode 100644
index 0000000..ad3d7ce
--- /dev/null
+++ b/.orf.at.txt
@@ -0,0 +1,25 @@
+single_page_link: //div[@id='ss-storyText']//p[@class='readMore']/a
+
+title: substring-before(//title,' - ')
+body: //div[@id="ss-storyText"]
+author: substring-before(//div[@id="ss-storyText"]//p[contains(text(), ', ORF.at')], ', ORF.at')
+strip: //div[@id="ss-storyText"]//p[contains(text(), ', ORF.at')]
+date: substring-after(//div[@class='storyMeta socialshare']//p[@class='date'],'Publiziert am')
+strip: //p[@class='date']
+
+strip: //p[@class='credit']
+strip: //p[@class='toplink']
+strip: //div[@id="ss-storyText"]/h1
+strip: //div[@class='socialButtons']
+strip: //div[@class='storyMeta socialshare']
+strip: //div[@class='socialShareWrapper']
+strip: //div[@id='socialshareprivacy']
+
+prune: no
+tidy: no
+
+test_url: http://orf.at/stories/2317355/
+test_url: http://orf.at/stories/2084731/
+test_url: http://orf.at/stories/2317313/2317311/
+test_url: http://wien.orf.at/news/stories/2746414/
+test_url: http://ooe.orf.at/news/stories/2750613/
diff --git a/derstandard.at.txt b/derstandard.at.txt
index 07db352..0bfeec0 100644
--- a/derstandard.at.txt
+++ b/derstandard.at.txt
@@ -1,13 +1,12 @@
-title: //div[@id='artikelHeader']/h1
+title: //div[@id='content-header']/h1
author: //span[@class='author']
-date: //span[@class='date']
body: //div[@class='copytext']
strip: //ul[@class='lookupLinksArtikel']
strip: //div[@id='pageTop']
strip: //div[@id='toolbar']
strip: //div[@id='articleTools']
-strip: //div[@id='weiterlesen']
+strip: //div[@id='weiterLesen']
strip: //div[@id='communityCanvas']
-test_url: http://derstandard.at/1318726018343/Breitband-LTE-Was-bringt-die-neue-Mobilfunk-Generation \ No newline at end of file
+test_url: http://derstandard.at/1318726018343/Breitband-LTE-Was-bringt-die-neue-Mobilfunk-Generation
diff --git a/fm4.orf.at.txt b/fm4.orf.at.txt
index 5db3e58..0c8bf57 100644
--- a/fm4.orf.at.txt
+++ b/fm4.orf.at.txt
@@ -1,7 +1,13 @@
author: //div[@class='authorDescription']/h2
body: //div[@id='story']
-date: substring-before(substring-after(//p[@class='date'],'Erstellt am:'), '-')
title: //h1[@class='detail']
-strip: //div[@class='fact']
-test_url: http://fm4.orf.at/stories/1689156/ \ No newline at end of file
+date: translate(translate(substring-before(substring-after(//p[@class='date'],'Erstellt am:'), ' Uhr'), '. ', '.'), '-', ' ')
+strip: //p[@class='date']
+
+strip: //p[@class='credit']
+
+tidy: no
+prune: no
+
+test_url: http://fm4.orf.at/stories/1689156/
diff --git a/news.orf.at.txt b/news.orf.at.txt
deleted file mode 100644
index 3b1d3cc..0000000
--- a/news.orf.at.txt
+++ /dev/null
@@ -1,11 +0,0 @@
-single_page_link: //div[@id='content']//p[@class='readMore']/a
-
-title: //div[@class='hidden offscreen']/h2
-body: //div[@id="storyText"]
-move_into(//div[@id='storyText']): //div[@class='fact']
-strip: //small[@class='credit']
-strip: //small[@class='caption']
-date: substring-after(//div[@id='storyMeta']//p[@class='date'],'Publiziert am')
-strip: //p[@class='toplink']
-
-test_url: http://news.orf.at/stories/2084731/ \ No newline at end of file
diff --git a/orf.at.txt b/orf.at.txt
index fb4f218..ad3d7ce 100644
--- a/orf.at.txt
+++ b/orf.at.txt
@@ -1,11 +1,25 @@
-single_page_link: //div[@id='content']//p[@class='readMore']/a
+single_page_link: //div[@id='ss-storyText']//p[@class='readMore']/a
-title: //div[@class='hidden offscreen']/h2
-body: //div[@id="storyText"]
-move_into(//div[@id='storyText']): //div[@class='fact']
-strip: //small[@class='credit']
-strip: //small[@class='caption']
-date: substring-after(//div[@id='storyMeta']//p[@class='date'],'Publiziert am')
+title: substring-before(//title,' - ')
+body: //div[@id="ss-storyText"]
+author: substring-before(//div[@id="ss-storyText"]//p[contains(text(), ', ORF.at')], ', ORF.at')
+strip: //div[@id="ss-storyText"]//p[contains(text(), ', ORF.at')]
+date: substring-after(//div[@class='storyMeta socialshare']//p[@class='date'],'Publiziert am')
+strip: //p[@class='date']
+
+strip: //p[@class='credit']
strip: //p[@class='toplink']
+strip: //div[@id="ss-storyText"]/h1
+strip: //div[@class='socialButtons']
+strip: //div[@class='storyMeta socialshare']
+strip: //div[@class='socialShareWrapper']
+strip: //div[@id='socialshareprivacy']
+
+prune: no
+tidy: no
-test_url: http://orf.at/stories/2084731/ \ No newline at end of file
+test_url: http://orf.at/stories/2317355/
+test_url: http://orf.at/stories/2084731/
+test_url: http://orf.at/stories/2317313/2317311/
+test_url: http://wien.orf.at/news/stories/2746414/
+test_url: http://ooe.orf.at/news/stories/2750613/
diff --git a/zeit.de.txt b/zeit.de.txt
index 4e00894..0b6a837 100644
--- a/zeit.de.txt
+++ b/zeit.de.txt
@@ -1,48 +1,62 @@
-# 2015.07.08 [Marvin Dickhaus] fixed single_page_link
-# 2013.10.30 [rezor92] fixed single_page_link
-# 2012-12-23 [carlo@...] fixed half-assed headlines in articles, removed inline author profiles, adjusted picture captions
-# 2012-03-17 [dkless@...] Cut metadata parts in the beginning and the ends of the content block; copyright entries for pictures removed; Author fixed, not sure if old entries still valid (I left them); Weird problems with some pages addressed (see last section for removing hidden section)
-# 2011-12-09 [carlo@...] Removed "related articles" block
-# 2011-08-23 [carlo@...] changed single page link to use print version: page works better, less ambiguity. Related cleanups and simplifications.
-# 2011-08-20 [carlo@...] added author, fixed date
-
-single_page_link: //a[contains(@href, 'komplettansicht')]
tidy: no
+prune: no
+
+# Figures are wrapped in a noscript tag which is itself wrapped in a
+# conditional comment. Feed readers will fail to parse this correctly
+# so get rid of the noscript tag altogether.
+replace_string(<noscript): <foo
-title: //title
-date: substring-before( //li[@class="date"], " " )
-author: //li[@class="author"]/a/text() | //li[@class="author first"]/a/text()
-author: substring-after(//li[@class='source first '], 'Quelle: ')
+title: //meta[@property='og:title']/@content
+date: //meta[@name='date']/@content
-strip_id_or_class: articleheader
-strip: //div[@id="comments"] | //div[@class="pagination block"] | //p[@class="ressortbacklink"] | //div[@id="relatedArticles"] | // div[@class="inline portrait"]
+strip: //span[@class='figure__copyright']
-#Removes author and date from the start
-strip: //ul[@class="tools"]
-#Removes copyright statement - often disturb as first line of the news
-strip: //p[@class="copyright"]
-strip: //div[@class="copyright"]
-#Removes pagination links at the end
-strip: //div[@class="pagination"]
-#Removes link to main page at the bottom of some articles (Zur Startseite)
-strip: //a[@href='http://www.zeit.de']
+# Self advertisements
+strip: //figure[@class='figure-stamp']
+strip: //a[contains(@title, 'Dieser Text ')]
+strip: //a[contains(@title, 'Dieser Artikel ')]
+strip: //span[@class='figure__text']/text()[contains(., 'Dieser Text ')]
+strip: //span[@class='figure__text']/text()[contains(., 'Dieser Artikel ')]
+
+#######################################
+# ZEIT:
+#######################################
+
+single_page_link: //a[contains(@href, 'komplettansicht')]
-# Fix picture captions
-wrap_in(small): //p[@class="caption"]/text()
+author: //a[@class='byline__author']/span
+author: substring-after(//span[@class='metadata__source'], 'Quelle: ')
-# Fix sub-headlines
-wrap_in(h2): //p/strong
-dissolve: //h2/strong
+body: //main/article/div[@itemprop='articleBody']
-#Sometimes things are embedded in the print version that are not displayed on the web, but will be displayed in the mobilized versions and lead even to problems. These sections are removed here.
-strip_id_or_class:"informatives"
-strip_id_or_class:"bottom"
-strip_id_or_class:"teasermosaic"
-strip_id_or_class:"comments"
-strip_id_or_class:"articlefooter af"
-strip_id_or_class:"relateds"
-strip_id_or_class:"pagination"
+strip: //a[@href='#']
+strip: //form[@id='newsletter-teaser-form']
+strip_id_or_class: 'article-pagination article__item '
-footnotes: no
test_url: http://www.zeit.de/kultur/film/2012-12/Kurzfilmtag
-test_url: http://www.zeit.de/kultur/2015-07/kapitalismuskritik-selbstberuhigung-armin-nassehi
+test_url: http://www.zeit.de/sport/2016-01/darts-wm-finale-anderson-lewis/komplettansicht
+test_url: http://www.zeit.de/kultur/2015-12/selbstverwirklichung-optimierung-essay
+test_url: http://www.zeit.de/2015/51/selbstdiagnose-gesundheit-zuhause-blut-urin-selbsttest
+test_url: http://www.zeit.de/campus/2015/s2/nebenjob-master-studium-finanzierung
+test_url: http://www.zeit.de/hamburg/politik-wirtschaft/2015-12/hamburg-wohnungsbau-fluechtlinge
+
+#######################################
+# ZEIT MAGAZIN:
+#######################################
+
+next_page_link: //meta[@rel='next']/@href
+
+author: //a[@class='article__head__meta__author']/span
+
+body: //main/article/div[@class='article__wrap']
+
+strip: //div[@class='article__head-wrap']//h1
+strip_id_or_class: article__socialbox
+strip_id_or_class: article__nextread nextread-base is-centered
+strip_id_or_class: js-comments
+strip_id_or_class: article__pagination is-constrained is-centered
+strip_id_or_class: article__head__meta
+
+test_url: http://www.zeit.de/zeit-magazin/2015/51/daisy-ridley-traum
+test_url: http://www.zeit.de/zeit-magazin/2015/52/cyberstalking-internet-stalker-familie-mierau
+test_url: http://www.zeit.de/zeit-magazin/leben/2015-12/rueckblick-2015-magnum-fs