500+ Youtube Auto Comments For Youtube Shorts using selenium with python on localhost
https://github.com/yashu1wwww/500-Auto-Youtube-Comments-Using-Localhost
https://youtu.be/FVumnHy5Tzo?si=W7BmUHNTT7SbBW1e
๐ฌ๐๐ฉ๐๐ ๐ช๐ฅ๐ฉ๐ค 3mins.46sec+ ๐ฉ๐๐๐ฃ ๐ง๐๐ข๐๐๐ฃ๐๐ฃ๐ ๐ฅ๐๐ง๐ฉ in the code
๐๐๐๐ญ๐๐ก ๐๐ก๐๐ฌ๐ ๐๐ข๐๐๐จ ๐๐ง๐ ๐๐จ๐ง๐ง๐๐๐ญ ๐๐ฉ๐ง ๐๐ง๐ ๐ซ๐ฎ๐ง
or after chrome opens using localhost
First, open Chrome file location and bypass the location restriction using an extension such as Touch VPN. In my case, the Chrome location(use start in: path) is
C:\Users\Hp\AppData\Local\Google\Chrome\Application
click window button and search cmd and enter
cd C:\Users\Hp\AppData\Local\Google\Chrome\Application (1st line in cmd)
in line enter
chrome.exe --remote-debugging-port=9222 --user-data-dir=""(in "enter your localhost path here")
Next, enter this command into the terminal, replacing "enter your localhost path here" with your localhost path:
For example, in my case it is:
chrome.exe --remote-debugging-port=9222 --user-data-dir="C:\Users\Hp\Desktop\Bots\Chromedriver\Localhost" (2nd line in cmd make sure you replace the localhost path)
pip install selenium==4.2.0
after enter s.py or double click on s.py
In lines 11 of the code, change the comments if you want to use something different.
In line 21, change the youtube shorts to the required URL.
press control + f and enter 50 and replace with how much cmts needed for each acc..
That's it! The URL will open in the previously opened localhost Chrome and 500+ auto comments will be done automatically.
๐ Note:Every time YouTube updates the code, it varies. So, open the YouTube video, press 'Ctrl+Shift+C' to open the developer tools
then copy the 'subcribe' button's XPath, CSS, or JavaScript path. Replace it in the code and press 'Ctrl+H' to find and replace the same element in the code.
๐if your selenium version is in latest version then the code never run
๐open cmd and enter pip uninstall selenium
And enter
pip install selenium==4.2.0
and hit enter
and
python -c "import selenium; print(selenium.version)"
๐๐๐๐จ ๐๐ฃ๐๐ค๐ง๐ข๐๐ฉ๐๐ค๐ฃ ๐๐จ ๐ค๐ฃ๐ก๐ฎ ๐๐ค๐ง ๐๐๐ช๐๐๐ฉ๐๐ค๐ฃal ๐ฅ๐ช๐ง๐ฅ๐ค๐จ๐ ๐๐ฃ๐ ๐ฌ๐ ๐๐ง๐ ๐ฃ๐ค๐ฉ ๐ง๐๐จ๐ฅ๐ค๐ฃ๐จ๐๐๐ก๐ ๐๐ค๐ง ๐๐ฃ๐ฎ ๐ ๐๐ฃ๐ ๐ค๐ ๐๐ก๐ก๐๐๐๐ก ๐๐๐ฉ๐๐ซ๐๐ฉ๐ฎ ๐๐ค๐ฃ๐ ๐๐ฎ ๐ฉ๐๐๐จ ๐ฉ๐ค๐ค๐ก.