summaryrefslogtreecommitdiff
path: root/npr.org.txt
diff options
context:
space:
mode:
authorFiveFilters.org <fivefilters@fivefilters.org>2013-10-05 11:43:20 +0200
committerFiveFilters.org <fivefilters@fivefilters.org>2013-10-05 11:43:20 +0200
commitb1f1d7e13ea1dd2e70b3459827582d226c7bb55e (patch)
treef03645d3e553d4b79d31fa36cd09ff916b76a79a /npr.org.txt
parentbb9e7df0d911bc0e70470f1e395d8afa2819e1e9 (diff)
downloadftr-site-config-b1f1d7e13ea1dd2e70b3459827582d226c7bb55e.tar.gz
ftr-site-config-b1f1d7e13ea1dd2e70b3459827582d226c7bb55e.zip
npr.org and theguardian.com
Diffstat (limited to 'npr.org.txt')
-rw-r--r--npr.org.txt12
1 files changed, 7 insertions, 5 deletions
diff --git a/npr.org.txt b/npr.org.txt
index 5dc7e74..acd73e4 100644
--- a/npr.org.txt
+++ b/npr.org.txt
@@ -1,11 +1,11 @@
title: //div[contains(@class, 'storytitle')]//h1
author: //p[@class="byline"]/span
-body: //div[@id='storyspan02']//*[@class='duration' or @class='download' or contains(@class, 'photo')] | //div[@id='storytext'] | //div[@class='transcript']
+body: //div[@id='primaryaudio']//*[@class='duration' or @class='download' or contains(@class, 'photo')] | //div[@id='storytext' or @id='supplementarycontent' or contains(@class, 'transcript')]
date: //meta[@name="date"]/@content
-strip: //div[@class='enlarge_measure']
-strip: //div[@class='enlarge_html']
-strip: //a[@class='enlargeicon']
+strip_id_or_class: enlarge_measure
+strip_id_or_class: enlarge_html
+strip: //a[contains(@class, 'enlargeicon')]
strip: //div[contains(@class, 'bookedition')]
strip: //div[@class='textsize']
strip: //ul[@class='genres']
@@ -16,6 +16,7 @@ strip: //h3[@class='conheader']
replace_string(<a name="more">&nbsp;</a>): <!-- no more -->
replace_string(<div class="transcript">): <div class="transcript"><h2>Transcript</h2>
+replace_string(<div class="transcript storytext">): <div class="transcript storytext"><h2>Transcript</h2>
prune: no
strip://div[@class="ecommercepop"]
@@ -29,4 +30,5 @@ strip://div[contains(@class, "bucketwrap internallink")]
test_url: http://www.npr.org/blogs/thetwo-way/2011/07/12/137799301/sports-loses-its-escapist-gleam-in-a-summer-of-court-dates
test_url: http://www.npr.org/2012/07/04/156190948/feeling-under-siege-catholic-leadership-shifts-right
-test_url: http://www.npr.org/2012/12/13/166480907/the-years-best-sci-fi-crosses-galaxies-and-genres \ No newline at end of file
+test_url: http://www.npr.org/2012/12/13/166480907/the-years-best-sci-fi-crosses-galaxies-and-genres
+test_url: http://www.npr.org/templates/story/story.php?storyId=229103221 \ No newline at end of file