Rishikant181 / Rettiwt-API

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

Login with auth token and not via api key #515

Closed Nevgup closed 2 months ago

Nevgup commented 2 months ago

Hello

I would like know if its possible to login with an auth token cookie, and not via API_KEY from the rettiwt login I saw that it was possible last year, but not now ?

Thanks for answer !

Rishikant181 commented 2 months ago

The API_KEY is nothing but the base64 encoded cookie string from the headers obtained after logging in to twitter (and these headers can also be scraped from the browser).

Internally, when you supply the base64 encoded cookies, they are again decoded and combined with an auth token (which is same for all users), to generate the full credentials.

This base64 encoding was done to deal with special characters inside the cookie string as well as make it a bit concise.

Nevgup commented 2 months ago

Ok thanks !