timbueno / SimpleTweetArchiver

Simple twitter script that writes your tweets to a file!
14 stars 3 forks source link

Authentication Error? #1

Open sheeran opened 11 years ago

sheeran commented 11 years ago

I just now upgraded to Mountain Lion and had to re-install some Python stuff to try and get this script working again. After installing tweepy and pytz, I ran the script and got this error:

tweetID file found! 
Latest Tweet ID: 322025990668816385
Gathering unarchived tweets... 
Traceback (most recent call last):
  File "/Users/jabba/Code/scripts/autoTweetArchiver.py", line 59, in <module>
    statuses = api.user_timeline(count=200, include_rts=True, since_id=idValue, screen_name=theUserName)
  File "/Library/Python/2.7/site-packages/tweepy/binder.py", line 185, in _call
    return method.execute()
  File "/Library/Python/2.7/site-packages/tweepy/binder.py", line 168, in execute
    raise TweepError(error_msg, resp)
tweepy.error.TweepError: [{u'message': u'Bad Authentication data', u'code': 215}]

Is this is a result of the Twitter's recent API changes? it appears that Tweepy version 2.0 (what I installed) is updated for it. Thanks for this script BTW. Has worked great up until now.

barnumbirr commented 11 years ago

Basic auth is no longer supported by the Twitter API, use OAuth instead.