]> git.immae.eu Git - github/wallabag/wallabag.git/blame - inc/3rdparty/site_config/standard/fnal.gov.txt
[add] new specific configuration files
[github/wallabag/wallabag.git] / inc / 3rdparty / site_config / standard / fnal.gov.txt
CommitLineData
ac4d1142
NL
1title: normalize(//h1)\r
2\r
3author: //td/p[position()=last()]/em\r
4\r
5# I swear, this is really the best way to do this\r
6date: normalize(//td[contains(@style, "color: #ffffff")])\r
7\r
8# my god, it's full of tables\r
9body: /table/tbody/tr[5]//table/tbody//table/tbody/tr/td\r
10strip: //h1\r
11\r
12# the following two lines strip the byline at the end of the article (the byline is a <p> that consists of an em dash and then some text in an <em>). 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.\r
13strip: //p[position()=last()]/em\r
14strip: //p[position()=last()]/child::text()
15test_url: http://www.fnal.gov/pub/today/archive_2011/today11-11-09_MuonDepartmentReadMore.html