Rishikant181 / Rettiwt-API

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

getUserTweets -- TypeError: Cannot read properties of undefined (reading 'instructions') #311

Closed vincanger closed 1 year ago

vincanger commented 1 year ago

this method has been working fine for a week or so, and just started throwing a TypeError the past day or so. I am able to get the user details, but not the user's tweets anymore

error TypeError: Cannot read properties of undefined (reading 'instructions')
 at Object.extractUserTweets
Rishikant181 commented 1 year ago

Seems like Twitter just removed functionality to browse Twitter without having an account.

vincanger commented 1 year ago

nooooooo

vincanger commented 1 year ago

@Rishikant181 it seems like even after logging in and initializing the client with cookies, getUserTweets still doesn't work. Could it be they changed up more than that?

Rishikant181 commented 1 year ago

That's because, even if you do login, getUserTweets still ignores that and just tries to fetch tweets without logging in. This was intended behavior, since I wanted to keep the methods that use login and those that don't, separate.

If are willing to fetch tweets with logging in, use this method instead.

Rishikant181 commented 1 year ago

@vincanger I have opened up an issue (see #312) regarding all functions requiring logging in. I'll be doing some testing against Twitter these two days. You may expect to see changes by Tuesday.

I apologize for the inconvenience.

Rishikant181 commented 1 year ago

@vincanger Please update to the latest version.