summaryrefslogtreecommitdiff
path: root/jdubuzz.com.txt
diff options
context:
space:
mode:
authorJeremy Benoist <j0k3r@users.noreply.github.com>2016-05-30 10:53:58 +0200
committerFiveFilters.org <fivefilters@fivefilters.org>2016-05-30 10:53:58 +0200
commit40dd94b0e7b2b7da655d2370bfeda82ab67090d2 (patch)
tree8d45d5e56e8b226be4e353d2ed14a495455f1a9f /jdubuzz.com.txt
parent1a87485ed09bec12e984a01717a0a8c5b6a7a955 (diff)
downloadftr-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 'jdubuzz.com.txt')
-rw-r--r--jdubuzz.com.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/jdubuzz.com.txt b/jdubuzz.com.txt
index ddae23f..9d18826 100644
--- a/jdubuzz.com.txt
+++ b/jdubuzz.com.txt
@@ -3,11 +3,12 @@
# 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.jdubuzz.com/2015/09/11/le-meilleur-du-jduzap-cest-maintenant/
-test_url: http://www.jdubuzz.com/tests/les-20-comptes-instagram-des-filles-les-plus-sexy-a-suivre-en-2016/ \ No newline at end of file
+test_url: http://www.jdubuzz.com/tests/les-20-comptes-instagram-des-filles-les-plus-sexy-a-suivre-en-2016/