简体   繁体   English

如何摆脱 selenium 中的 captha?

[英]How to get rid of captha in selenium?

When I want to login in google account using selenuim, captha is showing up.当我想使用 selenuim 登录 google 帐户时,captha 出现了。 I use user-agent but it doesn't help.我使用用户代理,但它没有帮助。 Can someone help me, please?有人能帮助我吗?

Captha picture Captha 图片

    options = webdriver.ChromeOptions()
    options.add_argument('--headless')
    options.add_argument('--no-sandbox')
    options.add_argument('--disable-dev-shm-usage')
    options.add_argument("user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36(KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36")
    driver = webdriver.Chrome("chromedriver", options=options)
    wait = WebDriverWait(driver, 60)

This is a known issue.这是一个已知的问题。
You literally CAN NOT bypass captcha with selenium.您实际上不能使用 selenium 绕过验证码。
See here more about it 在这里查看更多关于它的信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM