Auto Likes for All Videos in YouTube Playlist Using Selenium with python on localhost
If it comfort to use in undetected_chromedriver script then fork it...
Just open the 'Popular Uploads' section of the channel, copy the URL, and replace it in the 20th line of the 'like.py' script.
https://www.youtube.com/watch?v=FVumnHy5Tzo&t=1s&ab_channel=HelloWorld
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
Next, in the command prompt, navigate to the Chrome directory using the command cd C:\Users\Hp\AppData\Local\Google\Chrome\Application
Then,
use the command
chrome.exe --remote-debugging-port=9222 --user-data-dir="enter your localhost path here"
to open Chrome with remote debugging enabled. In my case, the command was
chrome.exe --remote-debugging-port=9222 --user-data-dir="C:\Users\Hp\Desktop\Bots\Chromedriver\Localhost"
After opening Chrome, paste the following two lines of code from the script into the command prompt and hit enter. This will open The playlist URL will open and do the auto likes to all of the video in the playlist..
Finally, in the command prompt, enter "pip install Random" and hit enter to install the necessary library.
๐ Note:Every time YouTube updates the code, it varies. So, open the YouTube video, press 'Ctrl+Shift+C' to open the developer tools,
๐Note:-
๐If you have the latest version of Selenium, the code may not 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 ๐ฅ๐ช๐ง๐ฅ๐ค๐จ๐ ๐๐ฃ๐ ๐ฌ๐ ๐๐ง๐ ๐ฃ๐ค๐ฉ ๐ง๐๐จ๐ฅ๐ค๐ฃ๐จ๐๐๐ก๐ ๐๐ค๐ง ๐๐ฃ๐ฎ ๐ ๐๐ฃ๐ ๐ค๐ ๐๐ก๐ก๐๐๐๐ก ๐๐๐ฉ๐๐ซ๐๐ฉ๐ฎ ๐๐ค๐ฃ๐ ๐๐ฎ ๐ฉ๐๐๐จ ๐ฉ๐ค๐ค๐ก.