Git Product home page Git Product logo

yomen's Introduction

Youtube Auto Commenter

Youtube Bot Auto Commenter Using Puppeter and NodeJS

Quick Links

Demo

$ see this DEMO in here > https://www.youtube.com/watch?v=C7AOauxguSc

Run / Installation

How to run ?

> git clone https://github.com/tegal1337/Youtube-Auto-Commenter/
> cd Youtube-Auto-Commenter
> npm install
> node main.js

dont forget to change the google username and password in config.js

module.exports = {
  keywords: "keywords",
  usernamegoogle: "username",
  passwordgoogle: "pass",
};

Feature

Feature Status
Random Copy Comment Ok
Manual Comment Ok
AI Comment (GPT BASED) Ok
Comment On Trending Ok
Comment based on Keyword Ok
Multi Account Ok

Requirements

  • Windows / Linux
  • Google Chrome
  • a Youtube account

Running on android

yes of course the bot is still works on android but you need ubuntu installed on your android , use Termux for it! and install ubuntu desktop with Andronix i prefer ubuntu 20 , cuz it's more stable than 18

command for installing inside the ubuntu

copy and paste one by one , don't be lazy dude 🤨

> apt instal
> apt update
> apt upgrade 
> apt install chromium-browser
> apt install npm
> npm install -g n
> n install lts
> hash -r 
> apt install curl
> curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
> echo "deb https://dl.yarnpkg.com/debian/ stable main" |  tee /etc/apt/sources.list.d/yarn.list
> apt install yarn 

go to directory of this project , then install the dependency

yarn

also you need to change executableFilePath in main.js you can set to /usr/bin/chromium

Configuration

Config Info
keyword fill the keyword , for searching videos of course
comments list of the comment
usernamegoogle your username google
password your google password
delaycomment delay commenting / seconds
trending Comment based on trending videos on your location
multiaccount Multiple account account
ai Auto commenting with AI

Support this project by

  • Give me an idea to create something amazing with this or

  • support by donating ( i won't use your money , i will give to charity to kitabisa.com , or you dont have to send any money to me , do it by yourself .. it also supporting me :) )

Contact

[email protected]

Donate

yomen's People

Contributors

fdciabdul avatar lolic0d3 avatar mbfakourii avatar muhammadzeni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

yomen's Issues

How to start a bot?

Friend tell me how to run the bot? what modules or what is needed only step by step thanks in advance!

Browser Security Problem

Describe the bug
After the filled email input I couldn't fill the password.

Issue: This browser or app may not be secure. Learn more
Try using a different browser. If you’re already using a supported browser, you can try again to sign in.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Fill the Email input'
  2. Click on 'next button'
  3. See error

Screenshots

image

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Chrome
  • Version: 123.0.6312.106 (Official Compiler) (64 bit) (cohort: Stable)

I can't print comments

When he goes to the video and wants to start writing a comment, he gives an error 401

High severity vulnerabilities reported

On install:
2 high severity vulnerabilities

After audit:
# npm audit report shelljs <=0.8.4 Severity: high Improper Privilege Management in shelljs - https://github.com/advisories/GHSA-4rq4-32rv-6wp6 Improper Privilege Management in shelljs - https://github.com/advisories/GHSA-64g7-mvw6-v9qj No fix available node_modules/shelljs command-exist * Depends on vulnerable versions of shelljs node_modules/command-exist 2 high severity vulnerabilities Some issues need review, and may require choosing a different dependency.

I updated the package.json file with latest versions of the components.
It all runs OK until the first comment and then seems to stop with no further comments.

not starting chrome even installed

┌──(sad㉿Demon)-[~/Downloads/Youtube-Auto-Commenter]
└─$ node main.js
(node:29836) UnhandledPromiseRejectionWarning: Error: Failed to launch the browser process! spawn C:\Program Files\Google\Chrome\Application\chrome.exe ENOENT

TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md

at onClose (/home/sad/Downloads/Youtube-Auto-Commenter/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:241:20)
at ChildProcess.<anonymous> (/home/sad/Downloads/Youtube-Auto-Commenter/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:233:85)
at ChildProcess.emit (events.js:400:28)
at Process.ChildProcess._handle.onexit (internal/child_process.js:280:12)
at onErrorNT (internal/child_process.js:469:16)
at processTicksAndRejections (internal/process/task_queues.js:82:21)

(Use node --trace-warnings ... to show where the warning was created)
(node:29836) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:29836) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

┌──(sad㉿Demon)-[~/Downloads/Youtube-Auto-Commenter]
└─$

Its not working

when i try to turn it on this is what it says:

C:\Users\Acer\Desktop\Youtube-Auto-Commenter-main\config.js:3
comments: ["hi"]
^^^^^^^^

SyntaxError: Unexpected identifier
at wrapSafe (internal/modules/cjs/loader.js:988:16)
at Module._compile (internal/modules/cjs/loader.js:1036:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
at Module.load (internal/modules/cjs/loader.js:937:32)
at Function.Module._load (internal/modules/cjs/loader.js:778:12)
at Module.require (internal/modules/cjs/loader.js:961:19)
at require (internal/modules/cjs/helpers.js:92:18)
at Object. (C:\Users\Acer\Desktop\Youtube-Auto-Commenter-main\main.js:10:16)
at Module._compile (internal/modules/cjs/loader.js:1072:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)

plz help

(btw im using copycomment = true)

Captcha ruins everything

I made a selector that checks for captcha and will just terminate the process if found. I can make a pr if you want with this , but it always trys to enter the password in the captcha box without my update.

Time to post a comment

The time of commenting should be floating, it should be sent consecutively, it will detect spam.

I suggest floating comments, for example, 10 comments in the first 30 minutes, 20 comments in the second hour, and 70 comments in the third hour, etc. With this method, YouTube will not be able to distinguish whether we are bots or not.

My account is limited and I can no longer post comments!

Chrome not installed in program Files

I updated this installation but now the program can't find Chrome:
"Could not find Google Chrome executable for channel 'chrome' at 'C:\Program Files\Google\Chrome\Application\chrome.exe'.

This is because Chrome is in Program Files (x86) which is currently the deefault location according to Google.

Only comments in 1 video

I'm trying to use the bot but it only comments in one random video and then stops working, it seems that the delay is broken for me

Features Update

  • Check wether user is logged in or not
  • Save data into dir ( fixed )
  • Random commet
  • Random keywords
  • More error handling
  • Filter videos

get bug like this

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Something Wrong maybe this is Short videos , live stream , or broken error : TimeoutError: waiting for selector #simplebox-placeholder failed

Commenting

Everything works but it doesnt click on add a comment i have to manually do it

Add new feature !!

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.

OpenAI is not work. This alwasy copy comment, I try to change config but it's not change

module.exports = {
  keywords: ["search keyword", "pass"],
  comments: ["hello","let's be a friend","subs to subs ahaha"],
  usernamegoogle: "",
  passwordgoogle: "",
  delaycomment: 60, // delay ( per second )
  // trending: false,//false
  // copycomment: false, // false if you want use comment above , i mean from array
  // userdatadir: "fdciabdul",
  ai: true, // true if you want to use OPEN AI (CHAT-GPT) auto comment
  apiKey: "API", //openai
};

YT BOT

Hey i wrote you on YT. I got the bot running now.

It logs into google account and opens yt. but when it trys to make a comment there is an "error" 401.

Cannot create comment!
Error: Request failed with status code 401

Failed to launch browser process.

I can't get the program to work. It always gives me this error when I try to start:

D:\Youtube-Auto-Commenter-main\node_modules\puppeteer\lib\cjs\puppeteer\node\BrowserRunner.js:197
            reject(new Error([
                   ^

Error: Failed to launch the browser process! spawn C:\Program Files\Google\Chrome\Application\chrome.exe ENOENT


TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md

    at onClose (D:\Youtube-Auto-Commenter-main\node_modules\puppeteer\lib\cjs\puppeteer\node\BrowserRunner.js:197:20)
    at ChildProcess.<anonymous> (D:\Youtube-Auto-Commenter-main\node_modules\puppeteer\lib\cjs\puppeteer\node\BrowserRunner.js:189:85)
    at ChildProcess.emit (node:events:537:28)
    at ChildProcess._handle.onexit (node:internal/child_process:289:12)
    at onErrorNT (node:internal/child_process:476:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

Node.js v18.4.0

I have installed all dependencies as far as I know.

Configurable random comment text

Can you please allow user to add array of comment texts in config file, and randomly select string from that array and comment it.

Comment never get published

Though comment get successfully posted,it get deleted automatically.
Note, i just use text no #,no link etc, so at least text comment must be accepted.
Is YouTube detecting this bot? how to overcome it?

error

C:\Users\m\Downloads\YT-Comment-Bot-master\YOMEN-main\YOMEN-main\main.js:66
await page.setUserAgent(randomUserAgent.UA());
^

TypeError: Cannot read properties of undefined (reading 'UA')
at startApp (C:\Users\m\Downloads\YT-Comment-Bot-master\YOMEN-main\YOMEN-main\main.js:66:43)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.