Pagination not selecting "Next"
The web page I'm scraping is http://nails4viet.com/list/all/all/page/1
I'm having an issue with pagination not selecting the "Next" button as designed.
It appears that the pagination is referencing the 10th anchor rather then the "Next" anchor.
So during the execution, I'm getting the following pages: 1, 2, 10, 13, 16, 19, 21, 23, 25, 27 etc..
All of the selected pages is the 10th anchor instead of "Next" anchor.
"Next" happens to be the 10th anchor on the first page.
Any advise would be much appreciated!
Chi
-
Hi Chi,
Sorry for the delay on this, the post was accidentally marked as resolved before.
For this project, please modify the XPath of the pagination loop into:
//a[contains(text(),'Next')]
To learn more about how to modify XPath, this tutorial can be very helpful, please check it out:
What is XPath and how to use it in Octoparse
Best regards,
Please sign in to leave a comment.
Comments
1 comment