wise-white•2y ago
Pass userData to request in Apify platform v3.1
Hi guys
I want to pass data to the requestQueue , how can I do it in Apify platform v3.1 ?
I were searching and saw this instruction: https://docs.apify.com/academy/node-js/request-labels-in-apify-actors. However Apify.openRequestQueue is deprecated in Apify v3.1
You can find my code in attachment
Please help . Thank you



3 Replies
crawler.addRequests works for me https://crawlee.dev/api/cheerio-crawler/class/CheerioCrawler#addRequests
wise-whiteOP•2y ago
Thank @HonzaS . I extracted the the data from request.userData wrongly.
Yeah I see now, you have put it there as
code and taking it out as data. Btw do you use the vscode debugger? In that you can stop program and actually see what is there in request.userData so you can find the bug much faster.