YouTube Auto Comment Bot is a Python script utilizing Selenium to automate leaving comments on YouTube videos. It allows users to leave comments with customizable content on multiple channels.
- Channel Commenting: The bot can automatically leave comments on videos of specified YouTube channels.
- Customizable Comments: Users can provide a list of comments, and the bot will randomly select and post them.
- Cookie Management: Utilizes cookies for YouTube login, allowing automated commenting without manual login each time.
- Multiple Channel Support: Supports commenting on multiple YouTube channels.
- The bot is configured to select the latest video from the channel's video section and comment on it. This is especially useful for "type beat" music producers who want to leave comments on other producers' channels while waiting for feedback on their videos.
- Bot is created for educational purposes and should be used responsibly. The author disclaims any responsibility for the consequences that may arise if the bot is misused, such as receiving a ban from Google on YouTube.
- The comment can only contain letters, numbers, the "!" sign, the "?" sign and emoji. Each comment is one line of text in a .txt file. A comment can NOT contain the characters " ' " (apostrophe character) and " " " (quotation mark). There must be no blank lines in the comments.txt file!
- Ensure you have Python installed on your machine.
- Install the required dependencies using
pip install -r requirements.txt
. - Create a
channel_urls.txt
file with YouTube channel URLs. - Prepare a list of comments in a
comments.txt
file. - Run the script using
python app.py
. - Manually log in to your Google account when prompted on the browser window.
- The bot will start leaving comments on the specified YouTube channels.
- Modify
channel_urls.txt
to include the YouTube channels you want to comment on. - Customize your comments by adding or removing entries in the
comments.txt
file. Read the 3) point of the IMPORTANT INFO section to learn how the comments.txt file should look.
Adding log writing support. In the future, it is planned to make a window application for easy management of bot settings.
- Michał Bugaj
This project is licensed under the License - see the LICENSE file for details.
Contributions and feedback are welcome for continuous improvement!