Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't show tweets of list #182

Open
FunkedelicBob opened this issue Apr 16, 2024 · 8 comments
Open

Can't show tweets of list #182

FunkedelicBob opened this issue Apr 16, 2024 · 8 comments

Comments

@FunkedelicBob
Copy link

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)
@mahrtayyab
Copy link
Owner

What exactly is the error?

@FunkedelicBob
Copy link
Author

What exactly is the error?

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

@FunkedelicBob
Copy link
Author

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

@mahrtayyab
Copy link
Owner

try uninstall and reinstall

@FunkedelicBob
Copy link
Author

try uninstall and reinstall

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

@mahrtayyab
Copy link
Owner

it is tweety-ns not tweety

@FunkedelicBob
Copy link
Author

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

@mahrtayyab
Copy link
Owner

You can use pip install tweety-ns==1.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants