From 40dd94b0e7b2b7da655d2370bfeda82ab67090d2 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Mon, 30 May 2016 10:53:58 +0200 Subject: 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 --- journaldugeek.com.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'journaldugeek.com.txt') diff --git a/journaldugeek.com.txt b/journaldugeek.com.txt index 9af13b0..69327c5 100644 --- a/journaldugeek.com.txt +++ b/journaldugeek.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.journaldugeek.com/2015/09/09/apple-ipad-pro/ -- cgit v1.3.1