I am learning python, I have done some bots (nothing special), I am trying to create a new one on walmart, but when I launch chromedriver, walmart site ask me for solve a captcha, this is not a problem, because I can solve it manually. The problem is that everytime I solve the captcha, the captcha appears again. My bot requires that I log in in walmart site, so I tested google chrome (not chromedriver) and I can login without any problem. I thought could be my ip or something else, but after some tests I realized that walmart block the log in process if I use chromedriver.
Here is my code:
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import time
options.add_argument("user-data-dir=C:\\Users\\PCHOME\\AppData\\Local\\Temp\\scoped1\\Default\\gdps");
driver = webdriver.Chrome(executable_path=r'dchrome\chromedriver.exe', options=options)
driver.get("https://www.walmart.com/")
In this case I am trying to log in manually (I tried to do with bot already). The site loads well, but the captcha does not allow me to log in, it just appears and appears and appears... this is the captcha img:
I press and hold the button until teh captcha is cleared, then appears this symbol ✓ and then appears the captcha again. Any ideas? thanks!
CodePudding user response: