Skip to content

A bot to retweet everything related to Cyber Security based on hashtag

License

Notifications You must be signed in to change notification settings

JMousqueton/Cyber-News-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🏴‍☠️ Cyber-News Bot 🤖 for Twitter 🐦


made-with-python Version License: Apache 2.0 Twitter: JMousqueton Twitter: Bot_CyberNews

Based on an idea by Cybersec-Twitter-BOT this BOT written in Python3 retweets every tweets related to cybersecurity based on hashtags.

Future

Check the TODO.md file

Installation

Install all the modules in requirement.txt

pip3 install -r requirements.txt

Configuration

  1. Go to Twitter Developer Platform and create a new app.

  2. rename config.cfg.sample to config.cfg

  3. 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
  1. Now replace hashtags with whatever query you want.

⚠️ For troubleshooting you can set the DEBUG variable to True

Usage

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

Demo

My bot is publishing the tweets here

Author

👤 Julien Mousqueton

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check issues page.

📝 License

Copyright © 2021 Julien Mousqueton.

This project is Apache 2.0 licensed.

Show your support

Give a ⭐️ if this project helped you!

About

A bot to retweet everything related to Cyber Security based on hashtag

Topics

Resources

License

Stars

Watchers

Forks

Languages