diff options
| author | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2016-05-30 10:53:58 +0200 |
|---|---|---|
| committer | FiveFilters.org <fivefilters@fivefilters.org> | 2016-05-30 10:53:58 +0200 |
| commit | 40dd94b0e7b2b7da655d2370bfeda82ab67090d2 (patch) | |
| tree | 8d45d5e56e8b226be4e353d2ed14a495455f1a9f /journaldugamer.com.txt | |
| parent | 1a87485ed09bec12e984a01717a0a8c5b6a7a955 (diff) | |
| download | ftr-site-config-40dd94b0e7b2b7da655d2370bfeda82ab67090d2.tar.gz ftr-site-config-40dd94b0e7b2b7da655d2370bfeda82ab67090d2.zip | |
Fix pagination for JDG sites (#169)
* Fix pagination for JDG sites
All pages have a ' next ' link to view the next content, not the next page.
But contents with more than one page also got this link but it's not embedded in `single-test` class node.
So we first remove that block and we found the ' next ' content, it means it's multipage article.
* Fix next link xpath
Diffstat (limited to 'journaldugamer.com.txt')
| -rw-r--r-- | journaldugamer.com.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/journaldugamer.com.txt b/journaldugamer.com.txt index e3baaa1..31ba7cd 100644 --- a/journaldugamer.com.txt +++ b/journaldugamer.com.txt @@ -3,10 +3,11 @@ # Source: http://siteconfig.fivefilters.org/grab.php?url=http://www.journaldugeek.com/2015/09/09/apple-ipad-pro/ date: //meta[@property="og:updated_time"]/@content -next_page_link: //div[contains(concat(' ',normalize-space(@class),' '),' pagination ')]/a[contains(concat(' ',normalize-space(@class),' '),' next ')] +next_page_link: //div[@class="post-content"]/div[@class='row pagination']/a[contains(concat(' ',normalize-space(@class),' '),' next ')] -strip: //div[contains(concat(' ',normalize-space(@class),' '),' jdg-recommend ')] -strip: //div[contains(concat(' ',normalize-space(@class),' '),' proofreader-bloc ')] +strip_id_or_class: jdg-recommend +strip_id_or_class: proofreader-bloc +strip_id_or_class: single-test body: //div[contains(concat(' ',normalize-space(@class),' '),' post-content ')] test_url: http://www.journaldugamer.com/2015/09/14/financier-desormais-tete-nintendo/ |
