Based on an idea by Cybersec-Twitter-BOT this BOT written in Python3 retweets every tweets related to cybersecurity based on hashtags.
Check the TODO.md file
Install all the modules in requirement.txt
pip3 install -r requirements.txt
-
Go to Twitter Developer Platform and create a new app.
-
rename config.cfg.sample to config.cfg
-
Now just take those keys and slap them on config.cfg, Following keys are required.
- API_key
- API_key_secret
- Access_token
- Access_token_secret
- Bearer_token
- Now replace hashtags with whatever query you want.
Execute main.py using python3
python3 main.py
You can execute this script hourly with the crontab
For example if the script is in the folder /opt/bot :
5 * * * * cd /opt/bot && python3 main.py
See Crontab Guru for more details about crontab syntax
My bot is publishing the tweets here
👤 Julien Mousqueton
- Website: https://julien.io
- Twitter: @JMousqueton
- Github: @JMousqueton
- LinkedIn: Julien Mousqueton
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Copyright © 2021 Julien Mousqueton.
This project is Apache 2.0 licensed.
Give a ⭐️ if this project helped you!