add_requests with a token that has an expiry time #1967
-
|
I would use add_requests to add a lot of requests to be scheduled, these requests would run for a while. If I schedule each of these requests with a token that has a 30 minute expiry time, at some point all the requests will start failing and the token has to be renewed. My idea was this: once the request fails, get a new token value and use send_request to retry the request. But then I also need to send this token value to every other request in the queue somehow, I don't know if that is possible? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
|
Hello @DoctorEvil92 and thanks for your interest in Crawlee! Just to be sure, what kind of token are you talking about? |
Beta Was this translation helpful? Give feedback.
Ah, yes, the pre-navigation hook should work well for this purpose.