mirror of
https://github.com/matthewmueller/x-ray.git
synced 2026-04-03 00:28:41 -06:00
Paginate and limit based on number of pages #93
Labels
No labels
bug
bug
docs
duplicated
enhancement
enhancement
enhancement
enhancement
feature
feature
help wanted
question
ready for contributor
stale
tech support
tech support
tech support
tech support
tech support
tech support
tech support
tech support
tech support
tech support
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github/x-ray#93
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Globerada on 4/19/2018
Hi.
I have not found this information in the docs.
How can I achieve a paginate based on the numbers of pages that the URL have?
Below is the example that I am using. Instead of a high limit so I can crawl all the pages, how can I put a valid limit base on the real number of pages?
x('http://www.example.com/products', 'div.products_details_container', data)
.paginate('.pagination a:last-Child@href')
.limit(999)
.write('results.json');