summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Anzinger <lukas@lukasanzinger.at>2016-07-17 14:20:20 +0200
committerFiveFilters.org <fivefilters@fivefilters.org>2016-07-17 14:20:20 +0200
commit87d4486698eaa0d4cd2f4f538a4d600eab47dfe2 (patch)
treec097bc2d485cc11a78b8135e7fd5bd4b3b0fce59
parent7d13e6f235d607dcb8ebf2dff400784ab8a1a8f5 (diff)
downloadftr-site-config-87d4486698eaa0d4cd2f4f538a4d600eab47dfe2.tar.gz
ftr-site-config-87d4486698eaa0d4cd2f4f538a4d600eab47dfe2.zip
Update derStandard.at and ORF.at (#183)
* derStandard.at: Remove native ad links at the end of an article. * ORF.at: Fix extraction heuristic for author name.
-rw-r--r--.orf.at.txt4
-rw-r--r--derstandard.at.txt1
-rw-r--r--orf.at.txt4
3 files changed, 5 insertions, 4 deletions
diff --git a/.orf.at.txt b/.orf.at.txt
index dd0f20b..9eb29c3 100644
--- a/.orf.at.txt
+++ b/.orf.at.txt
@@ -3,8 +3,8 @@ single_page_link: //div[@id='ss-storyText']//p[contains(., 'Mehr dazu')]/a
title: substring-before(//title,' - ')
body: //div[@id="ss-storyText"]
-author: substring-before(//div[@id="ss-storyText"]//p[contains(text(), ', ORF')], ', ORF')
-strip: //div[@id="ss-storyText"]//p[contains(text(), ', ORF')]
+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']
diff --git a/derstandard.at.txt b/derstandard.at.txt
index 8c84a5c..61ad6fc 100644
--- a/derstandard.at.txt
+++ b/derstandard.at.txt
@@ -15,6 +15,7 @@ strip: //div[@class='credits']
strip: //div[@id='feature-cover']
strip: //div[@id='feature-meta']
strip: //li[@class='empty']
+strip: //ul[@class='lookup-links']
prune: no
tidy: no
diff --git a/orf.at.txt b/orf.at.txt
index dd0f20b..9eb29c3 100644
--- a/orf.at.txt
+++ b/orf.at.txt
@@ -3,8 +3,8 @@ single_page_link: //div[@id='ss-storyText']//p[contains(., 'Mehr dazu')]/a
title: substring-before(//title,' - ')
body: //div[@id="ss-storyText"]
-author: substring-before(//div[@id="ss-storyText"]//p[contains(text(), ', ORF')], ', ORF')
-strip: //div[@id="ss-storyText"]//p[contains(text(), ', ORF')]
+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']