Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import tweepy as tp
#auth for twitter api
auth = tp.OAuthHandler('xxxxxxxxx', 'xxxxxxx')
auth.set_access_token('xxxx-xxxxx', 'xxxxxx')
api = tp.API(auth, wait_on_rate_limit=False)
try:
api.verify_credentials()
print("Authentication done")
except:
print("Error during authentication")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment