Apify

Apify and Crawlee Official Forum

b
F
A
J
A

enqueueLinksByClickingElements help

This is the code :
Plain Text
await utils.puppeteer.enqueueLinksByClickingElements({
        page,
        requestQueue: RequestQueue.open(),
        selector: 'li.pagination_next',
        label: 'category',
        forefront: true

    });

This is the error :
Plain Text
 Reclaiming failed request back to the list or queue. Expected property object `requestQueue` to have keys `["fetchNextRequest","addRequest"]` in object `options`


I have imported RequestQueue from crawlee, don't understand where it goes wrong
v
N
3 comments
Hey , you are missing an await in front of the RequestQueue.open().
stupid me... sorry. thank you very much
Plain Text
Error: Request is already handled!
Add a reply
Sign up and join the conversation on Discord
Join