Closed aks-71 closed 3 years ago
No, that's not possible.
You can get the rate limit status via a request - https://developer.twitter.com/en/docs/twitter-api/v1/developer-utilities/rate-limit-status/api-reference/get-application-rate_limit_status.
Also, you can override the default wait interval that TwitterPager uses between requests so you never get the 429 error.
Okay thanks!
Hey, I am using
TwitterPager
, and is there a way to access thex-rate-limit-reset
header when the error status code is 429. I see thatTwitterPager
raises aTwitterRequestError
and it only hasstatus_code
andmsg
. Can I get thex-rate-limit-reset
header from there or anywhere else? Thanks a lot!!Edit: I see a
get_quota
method inTwitterResponse
but there is not way to access it from TwitterPager