{"id":22791282,"url":"https://github.com/philip-hub/youtube-report-bot","last_synced_at":"2026-05-05T23:33:26.704Z","repository":{"id":247881606,"uuid":"827103555","full_name":"philip-hub/youtube-report-bot","owner":"philip-hub","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-11T04:51:56.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T17:13:29.404Z","etag":null,"topics":["bot","childprotection","commentreporting","cybersecurity","internetsafety","python","removeillegalcontent","selenium","webscraping","youtube"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/philip-hub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-11T03:14:21.000Z","updated_at":"2024-07-11T04:56:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"e29a0d64-40ab-4ce5-909c-be3e9ca7e70b","html_url":"https://github.com/philip-hub/youtube-report-bot","commit_stats":null,"previous_names":["philip-hub/youtube-report-bot"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/philip-hub/youtube-report-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philip-hub%2Fyoutube-report-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philip-hub%2Fyoutube-report-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philip-hub%2Fyoutube-report-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philip-hub%2Fyoutube-report-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/philip-hub","download_url":"https://codeload.github.com/philip-hub/youtube-report-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philip-hub%2Fyoutube-report-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32672675,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","childprotection","commentreporting","cybersecurity","internetsafety","python","removeillegalcontent","selenium","webscraping","youtube"],"created_at":"2024-12-12T02:46:21.256Z","updated_at":"2026-05-05T23:33:26.688Z","avatar_url":"https://github.com/philip-hub.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YouTube Comment Reporter Bot\n\nThis open-source project automates the process of reporting inappropriate comments on YouTube videos based on a list of keywords. The bot reads video URLs from a text document, navigates to each video, and reports comments containing any of the specified keywords.\n\n## Features\n\n- Automated login to YouTube.\n- Reporting comments based on a predefined list of keywords.\n- Processes multiple videos specified in a text document.\n- Keeps track of the number of comments reported and saves the count to a text file.\n\n## Prerequisites\n\n- Python 3.6 or higher\n- Google Chrome browser\n- ChromeDriver\n\n## Installation\n\n1. **Clone the Repository**\n\n   ```bash\n   git clone https://github.com/yourusername/youtube-comment-reporter-bot.git\n   cd youtube-comment-reporter-bot\n\n2. **Set Up a Virtual Environment**\n\n   ```bash\n   python -m venv myenv\n   source myenv/bin/activate  # On Windows use `myenv\\Scripts\\activate`\n\n3. **Install Required Packages**\n\n   ```bash\n   pip install selenium\n   pip install webdriver-manager\n\n4. **Download ChromeDriver**\n\n   Download the ChromeDriver from [here](https://developer.chrome.com/docs/chromedriver/get-started) and place it in a known directory. Make sure to match the version with your installed Chrome browser.\n\n5. **Create Required Text Documents**\n\n   - `credentials.txt`: Place your YouTube email and password in this file, each on a new line.\n     ```\n     your-email@gmail.com\n     your-password\n     ```\n\n   - `keywords.txt`: List of keywords to look for in comments, one per line.\n     ```\n     keyword1\n     keyword2\n     ```\n\n   - `video_urls.txt`: List of YouTube video URLs to process, one per line.\n     ```\n     https://www.youtube.com/watch?v=dQw4w9WgXcQ\n     https://www.youtube.com/watch?v=another_video_id\n     ```\n\n   - `chromedriverpath.txt`: The full path to your downloaded `chromedriver` executable.\n     ```\n     /path/to/chromedriver\n     ```\n\n## Usage\n\n1. **Activate the Virtual Environment**\n\n   ```bash\n   source myenv/bin/activate  # On Windows use `myenv\\Scripts\\activate`\n\n\n2. **Run the Script**\n\n   ```bash\n   python main.py\n\nThe script will log in to YouTube, process each video URL from video_urls.txt, and report comments containing any keywords from keywords.txt. The total count of reported comments will be saved to count.txt.\n\n## Example `credentials.txt`\n\n```\nyour-email@gmail.com\nyour-password\n```\n\n\n## Example `keywords.txt`\n\n```\nspam\nscam\nabuse\n```\n\n\n## Example `video_urls.txt`\n\n```\nhttps://www.youtube.com/watch?v=dQw4w9WgXcQ\nhttps://www.youtube.com/watch?v=another_video_id\n```\n\n\n## Example `chromedriverpath.txt`\n\n```\n/Users/yourusername/Downloads/chromedriver\n```\n\n\n## Notes\n\n- Ensure your Chrome browser and ChromeDriver versions match.\n- The bot waits for manual entry of 2-factor authentication code if required.\n- The bot includes a wait time to ensure all comments load before processing.\n\n## Contributing\n\nContributions are welcome! Please fork the repository and create a pull request with your changes. For major changes, please open an issue first to discuss what you would like to change.\n\n\n---\n\nBy following the instructions in this README, you should be able to set up and run the YouTube Comment Reporter Bot successfully. If you encounter any issues or have questions, feel free to open an issue on GitHub.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilip-hub%2Fyoutube-report-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphilip-hub%2Fyoutube-report-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilip-hub%2Fyoutube-report-bot/lists"}