]>
Commit | Line | Data |
---|---|---|
4e067cea NL |
1 | # Modified to define the single_page_link |
2 | # This filter is tested on: | |
3 | # http://www.ftchinese.com/story/001047373 | |
4 | # http://www.ftchinese.com/story/001047631 | |
5 | # http://www.ftchinese.com/story/001047622/?print=y | |
6 | # http://www.ftchinese.com/story/001049052 | |
7 | # http://www.ftchinese.com/story/001049088 | |
8 | ||
9 | title:substring-before(//title, '-') | |
10 | author: //div[@class='byline']/a | |
11 | date: //a[@class='storytime'] | |
12 | #Set date in print view | |
13 | #date: //div[@class='byline']/a/following-sibling::a | |
14 | body: //div[@id="bodytext"] | |
15 | strip://div[@class='pagination'] | |
16 | single_page_link://div[@class='pagination']/a[.='全文'] | |
17 | #next_page_link: //div[@class='pagination']//a[.='下一页'] | |
18 | test_url: http://www.ftchinese.com/story/001049088 |