mirror of
https://github.com/metafy-social/python-scripts.git
synced 2024-11-24 04:21:12 +00:00
.. | ||
code.py | ||
config.ini | ||
README.md | ||
requirements.txt |
TWITTER BOT
This is a Twitter bot, it will like and retweet your tweet, containing some keyword and will print the url of tweet.
Here I used the twython library to use Twitter API, this library can be used to all the things mentioned in Twitter API document.
Prerequisites
Check requirements.txt, for twython check here Generate your unique Twitter keys and token from here by creating a new app.
How to run the script
Update the keys and tokens in code.
Run the python file and enter the keyword you want to track, now any new tweet will automatically liked and retweeted.
It will print the link of tweet