bpb27 / twitter_scraping

Grab all a user's tweets (and get past 3200 limit)
591 stars 178 forks source link

full_text #15

Open shaharyar2643 opened 6 years ago

shaharyar2643 commented 6 years ago

The code works fine except it doesn't show extended text. Is there a way around to get the full text.

Li357 commented 6 years ago

You have to add a kwarg to api.status_lookup in get_metadata.py:

tweets = api.statuses_lookup(id_batch, tweet_mode='extended')
jason-lange commented 5 years ago

Anyone have more more specific coding for how to add a kwarg to api.status_lookup in get_metadata.py? When I modify the line: tweets = api.statuses_lookup(id_batch) so that it reads: tweets = api.statuses_lookup(id_batch, tweet_mode='extended') I get a typeError: statuses_lookup() got an unexpected keyword argument 'tweet_mode'

victoriateo commented 5 years ago

I had the same issue as jason-lange. You just need to pip uninstall tweepy in your command line, then pip install tweepy.
It worked for me! For more details, see https://github.com/tweepy/tweepy/issues/840.