Skip to content

Instantly share code, notes, and snippets.

@ce-dric
Created October 5, 2020 03:06
Show Gist options
  • Save ce-dric/cdb89e4924a23d43f04307f40bcaef5b to your computer and use it in GitHub Desktop.
Save ce-dric/cdb89e4924a23d43f04307f40bcaef5b to your computer and use it in GitHub Desktop.
api_key_ = 'type_api_key'
api_key_secret_ = 'type_api_key_secret'
token_ = 'type_token'
token_secret_ = 'type_token_secret'
# set tweepy(twitter api)
auth = tweepy.OAuthHandler(api_key_, api_key_secret_)
auth.set_access_token(token_, token_secret_)
api = tweepy.API(auth)
# send message
api.update_status(status=str)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment