Created
June 18, 2020 17:27
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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