This bot checks if a predefined YouTube channel has uploaded a new video, if a recent upload is detected, a comment is created on the uploaded video.
Python3 installed on the computer
- Setup new application and download your credentials from the Google API website
- Scopes:
https://www.googleapis.com/auth/youtube.force-ssl
- Authorized redirect URIs:
http://localhost:3000/
- Authorized JavaScript sources:
http://localhost:3000
- Rename you credentials file to
credentials.json
and put in bot root folder. - Setup
config.py
(Read before How to get the Playlist Id) - Install all necessary project dependencies
- Open folder with cmd and run
python3 main.py
- If, for the first time, a page will open to login
- After login, the bot will start to work!
Any problem with access, delete the file token.json
and restart the bot
- Access the channel you want to comment on
- Click on Videos section and after that Play All
- Copy the id (in url) that is in &list=
Example: https://www.youtube.com/watch?v=IRIcIMC1bMQ&list=UUrfluf17A1AsyOEZWpFzK2w&index=2. The ID is UUrfluf17A1AsyOEZWpFzK2w