boiling-coffee•2y ago
How to push request queue after click method?
I tried to push a link in the request queue through repeat.
However, when I looked at the contents of the queue, the queue count did not change or the expected count did not come out.
I think it is duplicated as the crawl proceeds at the same time, and the same link url enters the queue.
Is there a solution?
2 Replies
crawler.addRequest
and use some random https://crawlee.dev/api/next/core/class/Request#uniqueKey to ensure that same URLs will be crawled againRequest | API | Crawlee
Represents a URL to be crawled, optionally including HTTP method, headers, payload and other metadata.
The
Request
object also stores information about errors that occurred during processing of the request.
Each Request
instance has the uniqueKey
property, which can be either specified
manually in the constructor or generated automaticall...boiling-coffeeOP•2y ago
Thank you so much I solved it