From 9a69161c8646f63b4d9fa17c6ac3ab922d625859 Mon Sep 17 00:00:00 2001 From: "FiveFilters.org" Date: Wed, 27 Feb 2013 23:43:10 +0100 Subject: Initial commit --- fnal.gov.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 fnal.gov.txt (limited to 'fnal.gov.txt') diff --git a/fnal.gov.txt b/fnal.gov.txt new file mode 100644 index 0000000..e404ccb --- /dev/null +++ b/fnal.gov.txt @@ -0,0 +1,15 @@ +title: normalize(//h1) + +author: //td/p[position()=last()]/em + +# I swear, this is really the best way to do this +date: normalize(//td[contains(@style, "color: #ffffff")]) + +# my god, it's full of tables +body: /table/tbody/tr[5]//table/tbody//table/tbody/tr/td +strip: //h1 + +# the following two lines strip the byline at the end of the article (the byline is a

that consists of an em dash and then some text in an ). I have no idea why I can't just strip //p[position()=last()], but trying to do so includes a bunch of other crap in the output. +strip: //p[position()=last()]/em +strip: //p[position()=last()]/child::text() +test_url: http://www.fnal.gov/pub/today/archive_2011/today11-11-09_MuonDepartmentReadMore.html \ No newline at end of file -- cgit v1.3.1