From 9a69161c8646f63b4d9fa17c6ac3ab922d625859 Mon Sep 17 00:00:00 2001 From: "FiveFilters.org" Date: Wed, 27 Feb 2013 23:43:10 +0100 Subject: Initial commit --- smithsonianmag.com.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 smithsonianmag.com.txt (limited to 'smithsonianmag.com.txt') diff --git a/smithsonianmag.com.txt b/smithsonianmag.com.txt new file mode 100644 index 0000000..3e8fee9 --- /dev/null +++ b/smithsonianmag.com.txt @@ -0,0 +1,20 @@ +# meta data +title://h1[@id = 'articleTitle'] +author:substring-after(//ul[@id = 'byLine']/li[1],'By ') +date:substring-before(substring-after(//ul[@id = 'byLine']/li[last()],','),',') +body://div[@id = 'article-body'] + +# full content +single_page_link://td/li[@class = 'article-singlepage']/a + +# caption clean up +wrap_in(i)://span[@class='articleImageCaptionwide'] +move_into (//span[@class='articleImageCaptionwide'])://div[@id = 'articleImage']/p + + +# clean up +strip://p[@id = 'articlePaginationWrapper'] +strip://ul[contains(@class, 'cat-breadcrumb')] +strip://div [@class= 'viewMorePhotos'] + +test_url: http://www.smithsonianmag.com/history-archaeology/The-Goddess-Goes-Home.html \ No newline at end of file -- cgit v1.3.1