TwitchToTweet is an automation bot that monitors changes in a Twitch stream's status, category, and title, and tweets updates in real-time.
Follow the steps below to run this project on your machine.
- Python 3.x
- Selenium
- Requests
- Firefox Web Browser (with Geckodriver)
- Python-decouple
- Clone or download the project.
- Install the required Python libraries:
pip install selenium requests python-decouple - Modify the
channels.jsonfile to add the Twitch channels you want to monitor. - Run GetTwitchAuthBearer.py to obtain your AUTH_BEARER token. Enter your Twitch CLIENT_ID and CLIENT_SECRET when prompted.
- Add your
CLIENT_IDandAUTH_BEARERfor the Twitch API to the.envfile. - On the first run, you will need to manually log in to your Twitter account. This is to save the cookies.
- Run the
main.pyfile to start the bot. It will begin monitoring Twitch streams and will automatically tweet any changes detected. - You can manually test the Twitter automation functions by running the
Twitter.pyfile.
This project is open source and contributions are welcome! Feel free to submit pull requests to add new features, fix bugs, or improve documentation.
This project is licensed under the MIT License. For more details, see the LICENSE file.