tweety icon indicating copy to clipboard operation
tweety copied to clipboard

Can't show tweets of list

Open FunkedelicBob opened this issue 10 months ago • 8 comments

Hey, I saw you mention using the function get_list_tweets but I can't seem to get it to work. Can you have a look at my example code?

from tweety import Twitter

app = Twitter("session")
app.sign_in('username', 'password')

list_id = "1234567890"  # Replace this with the actual list ID

list_tweets = app.get_list_tweets(list_id)

for tweet in list_tweets.tweets:
    print(tweet)

FunkedelicBob avatar Apr 16 '24 05:04 FunkedelicBob

What exactly is the error?

mahrtayyab avatar Apr 16 '24 05:04 mahrtayyab

What exactly is the error?

list_tweets = app.get_list_tweets(list_id)
AttributeError: 'Twitter' object has no attribute 'get_list_tweets'

FunkedelicBob avatar Apr 16 '24 05:04 FunkedelicBob

Running on 3.10.1 And I just ran: pip install --upgrade tweety

FunkedelicBob avatar Apr 16 '24 05:04 FunkedelicBob

try uninstall and reinstall

mahrtayyab avatar Apr 16 '24 05:04 mahrtayyab

try uninstall and reinstall

Good call. I'll do it first thing tomorrow morning and let you know. I really appreciate the quick replies!

FunkedelicBob avatar Apr 16 '24 05:04 FunkedelicBob

it is tweety-ns not tweety

mahrtayyab avatar Apr 16 '24 08:04 mahrtayyab

it is tweety-ns not tweety

Thanks, but it was actually pip. It is installing version 0.9.9.5 instead of 1.1.2

FunkedelicBob avatar Apr 16 '24 13:04 FunkedelicBob

You can use pip install tweety-ns==1.1.2

mahrtayyab avatar Apr 16 '24 13:04 mahrtayyab