sábado, 5 de junio de 2021

Twitter bot

 https://www.youtube.com/watch?v=0FOUFF4q14A

Installation https://stackoverflow.com/questions/31431002/unable-to-import-tweepy-module

https://dototot.com/write-twitter-bot-python-tweepy-tweet-list-users/

https://gist.github.com/szolotykh/e4924159d79ddbaa12c6


https://pypi.org/project/tweepy/

https://www.geeksforgeeks.org/tweet-using-python/

# importing the module
import tweepy
  
# personal details
consumer_key ="xxxxxxxxxxxxxxxx"
consumer_secret ="xxxxxxxxxxxxxxxx"
access_token ="xxxxxxxxxxxxxxxx"
access_token_secret ="xxxxxxxxxxxxxxxx"
  
# 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 ="Hello Everyone !")