Skip to content

Instantly share code, notes, and snippets.

@git-jr
Created June 18, 2020 17:27
Show Gist options
  • Save git-jr/9005f48691847ffa6edf2bd68e25e567 to your computer and use it in GitHub Desktop.
Save git-jr/9005f48691847ffa6edf2bd68e25e567 to your computer and use it in GitHub Desktop.
Código de teste realizar um Tweet com um rótulo customizado
# importing the module
import tweepy
# personal details
consumer_key ="xxxxxxxxxxxxxx"
consumer_secret ="xxxxxxxxxxxxxx"
access_token ="xxxxxxxxxxxxxx"
access_token_secret ="xxxxxxxxxxxxxx"
# authentication of consumer key and secret
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
# authentication of access token and secret
auth.set_access_token(access_token, access_token_secret)
api = tweepy.API(auth)
# update the status
api.update_status(status ="Abra esse Tweet")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment