News Flash
AutoPager: Version 0.6.0.20 Release. Rewrite most of the code to make it works on both Firefox, Google Chrome and Fennec. Improve AutoPager Lite. And allow other scripts to integrate with AutoPager. You can find more info here. Improve ajax support. Refer to http://member.teesoft.info/bugzilla/show_bug.cgi?id=48 for detail. AutoPager will now re-support ajax mode google now. I hope google not change their layout to anti autopager recently.

Try Ctrl+ALT+3 if it doesn't work on your google.
You can now update to 0.6.0.20: We recommend!Click here to scan for System Errors & Optimize PC Performance
Create new ap rule for page without "next" in links comment

This works on AutoPager 0.5.1.4 or newer version.
This is the recording of the steps to create the rule for http://www.pspad.com/en/pspad-extensions.php.
This demo shows how to create AutoPager rules for the pages which don't have "Next" in links. They only have a navbar includes all the page numbers like this: Page: [1], 2, 3, 4.

The final link xpath get in this tutorial is:
//div[@id='obspoz']/p/text()[contains(.,'[')]/following-sibling::a[1]
Steps explains:

//div[@id='obspoz']/p :select the navbar.
//div[@id='obspoz']/p/text() : select the texts in the navbar since current page number does not have a node
//div[@id='obspoz']/p/text()[contains(.,'[')] : select the text for the current page number. It will be easier if the current page number has a node, for example if it's a span with class='current': //div[@id='obspoz']/p/span[@class='current'].
//div[@id='obspoz']/p/text()[contains(.,'[')]/following-sibling::a[1] : select the first link after the current page number text.

Comments
Search RSS
To avoid spam, only registered users can write comments! Login Or Register
danthe0  - What if.   |2009-05-28 00:46:48
Great job on the method but what about sites where the pattern is:-

0, 1,
2, 3, 4, 5, 6, ..., 100 ?

Oh and the only difference from the pattern
is that the current page has no anchor tag.


Source : http://www.gendou.com/amusic/


Many thanks, that is very nice coding ~.~
wind   |2009-05-25 14:05:39
If you carefully view the video you will find the demo page I used in the
tutorial has no anchor tag too.

You can try the following one for your
page:
//body/div/div/text()[string-length(normaliz e-space())>2 and contains(.,
',') and (contains(substring-after(.,','),',') or
contains(substring-after(.,':'),','))]/following-s ibling::a[1]
BartworthZ   |2009-10-21 06:40:47
thanks for the tutorial but i'm having trouble trying to get the photos
page on www.thisis50.com to work, here's
a link:

http://www.thisis50.com/photo/photo/listFor Contributor?scree
nName=50cent

i have the
url pattern:
http://www.thisis50.com/photo/photo/*

an d the
Content XPath:
//div[@class='xg_module_body'
and div/@class='xg_list xg_list_photo xg_list_photo_main' and
ul/@class='pagination easyclear ']

but no luck with the Link
XPath.
Can you help?

[size=large]
UPDATE:
I figured out the XPath now, thanks again for the tutorial...I love
AutoPager

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

< Prev   Next >

Feed
RSS 2.0





Google Translate: Arabic German Portuguese Italian Russian Japanese Spanish French Korean Turkish