summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFiveFilters.org <fivefilters@fivefilters.org>2016-01-16 19:15:11 +0000
committerFiveFilters.org <fivefilters@fivefilters.org>2016-01-16 19:15:11 +0000
commitb2c78d8033cb604ac7238b88693e494caed58dff (patch)
tree65374d5e7a9398f6644af24d74043cb2cb723dec
parent4157b0d148f7c7ea837a0c7d4dced1e19edae673 (diff)
parente184e405774b1519e964fc2a39475e9dbb47dbc8 (diff)
downloadftr-site-config-b2c78d8033cb604ac7238b88693e494caed58dff.tar.gz
ftr-site-config-b2c78d8033cb604ac7238b88693e494caed58dff.zip
Merge pull request #124 from Lukas0907/lwn
LWN.net: Fix author and date parsing for special articles
-rw-r--r--lwn.net.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/lwn.net.txt b/lwn.net.txt
index 82c6e1a..06a6dc6 100644
--- a/lwn.net.txt
+++ b/lwn.net.txt
@@ -13,6 +13,9 @@ title: //h1
author: //div[@class='FeatureByline']/strong
date: //div[@class='FeatureByline']/text()[preceding-sibling::br]
strip: //div[@class='FeatureByline']
+author: substring-after(//div[@class='GAByline']/p[2], 'by ')
+date: //div[@class='GAByline']/p[1]
+strip: //div[@class='GAByline']
# tidy will take care of fixing the tag mess that we make here.
replace_string(<p class="Cat1HL">): <h1>
@@ -33,3 +36,4 @@ test_url: http://lwn.net/Articles/669114/
test_url: http://lwn.net/Articles/670209/
test_url: http://lwn.net/Articles/670209/rss
test_url: http://lwn.net/Articles/668318/rss
+test_url: http://lwn.net/Articles/670062/