I am extremely new to Python and Twitter development, so I am completely lost. I am just trying to tweet using Python and tweepy for a project that I am doing. But I cannot authenticate my credentials. This is super irritating. Any help would be helpful! I am using Python 2.7 and this is my code:
import tweepy
consumer_key = ‘’
consumer_secret = '’
access_token = '’
access_token_secret = '****************’
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)
api = tweepy.API(auth)
api.update_status(‘Hello from tweepy!’)
and then I get this in return:
Traceback (most recent call last):
File “<pyshell#27>”, line 2, in
api.update_status(‘Hello from tweepy!’)
File “build/bdist.macosx-10.9-intel/egg/tweepy/binder.py”, line 230, in_call
return method.execute()
File “build/bdist.macosx-10.9-intel/egg/tweepy/binder.py”, line 203, in execute
raise TweepError(error_msg, resp)
TweepError: [{u’message’: u’Your credentials do not allow access to this resource.’, u’code’:220}]