Rishikant181 / Rettiwt-API

A CLI tool and an API for fetching data from Twitter for free!
https://rishikant181.github.io/Rettiwt-API/
MIT License
306 stars 31 forks source link

Usage Question #395

Closed quan612 closed 6 months ago

quan612 commented 8 months ago

Hi,

Thanks for the tool, just wondering if:

Rishikant181 commented 8 months ago
  1. Yes, the package is subject to the same rate limits as the standard rate limits of the Twitter client application (which is still significantly higher than the official Twitter Developer API).
  2. The cookie has a validity of a year from the day of authentication and yes, you are supposed to use the same cookie for subsequent fetch. Never generate new cookie for every subsequent request. Generate once and use for a year.
Rishikant181 commented 8 months ago

Keeping this issue pinned since I failed to mention anything regarding validity of cookies in the docs (dumb me :P)

I'll be updating the docs later.

quan612 commented 8 months ago

Thanks for your response.

May I know if the limit remaining or limit reset is returned somewhere so we can tell ahead that rate limit is gonna happening.

Rishikant181 commented 8 months ago

Unfortunately, no such time limit is returned. The only solution which might mitigate hitting the rate limits is introduction and artificial delay in between successive requests.