A Python script that automatically starts a restream of a YouTube Livestream using OBS
YouTube Restream Bot is a Python script that automatically starts a restream of a YouTube Livestream using OBS. It uses Google's YouTube API V3 to detect if a channel is live and OBS's Websocket Plugin to send the Start/Stop Streaming Command.
- ✅ Detect if a Channel starts a Livestream
- ✅ Automatically Starts/Stops the Stream in OBS
To start off, please head to the releases page and download the latest release version.
Please make sure to have the OBS Websocket Plugin installed.
Set up your OBS Streaming credentials as you always would and Enable the Websocket Plugin.
Create a project in the Google Cloud console and enable the YouTube Data API V3.
Open the youtube-restream-bot.py in a text editor of your choice and enter API_KEY for YouTube's API, CHANNEL_ID for your Source-Channel ID and OBS_WEBSOCKET_PASSWORD.
You might also want to change the check-interval, which is set to 60 seconds per default.
Launch the application in terminal using python3 youtube-restream-bot.py
Contributions are welcome! Please follow these steps:
- Fork the repository
- Create a new branch (
git checkout -b feature-name
) - Commit your changes (
git commit -m 'Add some feature'
) - Push to the branch (
git push origin feature-name
) - Open a pull request
This project is licensed under the MIT License.
- massimo-rnd - @massimo_rnd - hi@massimo.gg
- Project Link - https://github.com/massimo-rnd/youtube-restream-bot
Feel free to reach out if you have any questions or suggestions!