Skip to content Skip to sidebar Skip to footer

Tweepy Returns 414 Error Retrieving Status Of Only Most Recent Tweet

My code looks like: user = api.get_user('any_user_you_like') for status in api.user_timeline(user, count=1, trim_user=1): status = str(status.id) When I run this on my own twi

Solution 1:

I solved the issue. api.get_user returns a ton of data for the user that isn't necessarily their user ID or anything relevant. You can forgo the user = api.get_user('name') bit entirely and just do:

for status in api.user_timeline(screen_name='any_name_you_like', count=1, trimuser=1):
    status = str(status.id)

Post a Comment for "Tweepy Returns 414 Error Retrieving Status Of Only Most Recent Tweet"