Youtube auto comments using multi accounts using selenium with python
๐๐๐๐ญ๐๐ซ ๐๐ฐ๐จ ๐จ๐ซ ๐ฆ๐จ๐ซ๐ ๐๐จ๐ฆ๐ฉ๐ข๐ฅ๐ ๐จ๐ ๐๐จ๐ญ๐ฌ ๐๐๐ญ๐๐ก ๐๐ก๐๐ฌ๐ ๐๐ข๐๐๐จ ๐๐ง๐ ๐๐จ๐ง๐ง๐๐๐ญ ๐๐ฉ๐ง ๐๐ง๐ ๐ซ๐ฎ๐ง
https://github.com/yashu1wwww/500-Auto-Youtube-Comments-Using-Localhost
Change the email and password in the 14th and 15th lines, as well as in the 73 & 74th lines.
Also, change the URL in the url.txt file to the desired URL and change the comments text that you needed in the 11th line..
After downloading the folder, extract it and open the command prompt. If you have Python installed, type "Python" in the command prompt to check the version.
Then type "pip install undetected_chromedriver" in the command prompt and press the Enter button.
Make sure that you have an active internet connection.
Type "pip install random" in the command prompt and press the Enter button.
After downloading the chromedriver from https://chromedriver.chromium.org/downloads,
extract it to the downloaded folder that matches the version of your Chrome browser.
Type "comment.py" in the command prompt in that particular folder or double-click on comment.py
๐Python Install Setup
๐Note:-
๐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.1 or pip install selenium==4.2.0
and hit enter
and
python -c "import selenium; print(selenium.version)"
๐๐๐๐จ ๐๐ฃ๐๐ค๐ง๐ข๐๐ฉ๐๐ค๐ฃ ๐๐จ ๐ค๐ฃ๐ก๐ฎ ๐๐ค๐ง ๐๐๐ช๐๐๐ฉ๐๐ค๐ฃal ๐ฅ๐ช๐ง๐ฅ๐ค๐จ๐ ๐๐ฃ๐ ๐ฌ๐ ๐๐ง๐ ๐ฃ๐ค๐ฉ ๐ง๐๐จ๐ฅ๐ค๐ฃ๐จ๐๐๐ก๐ ๐๐ค๐ง ๐๐ฃ๐ฎ ๐ ๐๐ฃ๐ ๐ค๐ ๐๐ก๐ก๐๐๐๐ก ๐๐๐ฉ๐๐ซ๐๐ฉ๐ฎ ๐๐ค๐ฃ๐ ๐๐ฎ ๐ฉ๐๐๐จ ๐ฉ๐ค๐ค๐ก.
if you cmt on your brand acc also means below is the code make separate py file for each brand acc below is the code....
wait.until(EC.visibility_of_element_located((By.NAME,'identifier'))).send_keys(email) #time.sleep(2) wait.until(EC.visibility_of_element_located((By.NAME,'Passwd'))).send_keys(password) time.sleep(11) #if click on brand acc 2 changes to 11 or 12,13
if click on 1st brand account
driver.find_element_by_xpath('/html/body/ytd-app/ytd-popup-container/tp-yt-paper-dialog/ytd-channel-switcher-renderer/div[2]/div/ytd-account-item-section-renderer/div[2]/ytd-account-item-renderer[1]/tp-yt-paper-icon-item/tp-yt-paper-item-body/yt-formatted-string[1]').click()
if click on 2nd brand account
driver.find_element_by_xpath('/html/body/ytd-app/ytd-popup-container/tp-yt-paper-dialog/ytd-channel-switcher-renderer/div[2]/div/ytd-account-item-section-renderer/div[2]/ytd-account-item-renderer[2]/tp-yt-paper-icon-item/tp-yt-paper-item-body/yt-formatted-string[1]').click()
if click on 3rd brand account
driver.find_element_by_xpath('/html/body/ytd-app/ytd-popup-container/tp-yt-paper-dialog/ytd-channel-switcher-renderer/div[2]/div/ytd-account-item-section-renderer/div[2]/ytd-account-item-renderer[3]/tp-yt-paper-icon-item/tp-yt-paper-item-body/yt-formatted-string[1]').click()
if click on 4th brand account
driver.find_element_by_xpath('/html/body/ytd-app/ytd-popup-container/tp-yt-paper-dialog/ytd-channel-switcher-renderer/div[2]/div/ytd-account-item-section-renderer/div[2]/ytd-account-item-renderer[4]/tp-yt-paper-icon-item/tp-yt-paper-item-body/yt-formatted-string[1]').click()
if click on 5th brand account
driver.find_element_by_xpath('/html/body/ytd-app/ytd-popup-container/tp-yt-paper-dialog/ytd-channel-switcher-renderer/div[2]/div/ytd-account-item-section-renderer/div[2]/ytd-account-item-renderer[5]/tp-yt-paper-icon-item/tp-yt-paper-item-body/yt-formatted-string[1]').click()
if click on 6th brand account
driver.find_element_by_xpath('/html/body/ytd-app/ytd-popup-container/tp-yt-paper-dialog/ytd-channel-switcher-renderer/div[2]/div/ytd-account-item-section-renderer/div[2]/ytd-account-item-renderer[6]/tp-yt-paper-icon-item/tp-yt-paper-item-body/yt-formatted-string[1]').click()
if click on 7th brand account
driver.find_element_by_xpath('/html/body/ytd-app/ytd-popup-container/tp-yt-paper-dialog/ytd-channel-switcher-renderer/div[2]/div/ytd-account-item-section-renderer/div[2]/ytd-account-item-renderer[7]/tp-yt-paper-icon-item/tp-yt-paper-item-body/yt-formatted-string[1]').click()
if click on 8th brand account
driver.find_element_by_xpath('/html/body/ytd-app/ytd-popup-container/tp-yt-paper-dialog/ytd-channel-switcher-renderer/div[2]/div/ytd-account-item-section-renderer/div[2]/ytd-account-item-renderer[8]/tp-yt-paper-icon-item/tp-yt-paper-item-body/yt-formatted-string[1]').click()
time.sleep(3)