Rishikant181 / Rettiwt-API

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

Can't fetch tweets from restricted account, even if logged in to an account with access! #281

Closed Rishikant181 closed 1 year ago

Rishikant181 commented 1 year ago

The response in such a case is:

No tweets matching the given criteria found

Rishikant181 commented 1 year ago

Okay so I figured out why it happens.

What I have been doing till now is, even if the user gives a cookie, while fetching Tweets (since it uses an unrestricted endpoint), I didn't use the provided cookies and fetched tweets using guest authorization. This resulted in Tweets from restricted account not being fetched :P.

The immediate fix is making that endpoint use authentication, depending on whether user has provided cookies or not, and not implicitly use guest authentication.