I am seeing how to extract data from Twitter with Python and Tweetpy, however when I put any user on the list, it does not find them. Am I wrong in the method ?. It is the following:
for handle in handles_list:
print ('Fetching @' + handle)
try:
user = api.get_user(handle)
followers = user.followers_count
description = user.description
for friends in user.friends():
print (friends.screen_name)
insert_db(handle, followers, description)
except:
print ('--' + handle + ' not found')
The list I'm looking for is the following:
handles_list = ["RISEtoWIN", "Nirvana", 'mudhoney']
And as a result (although they exist) it is: