【问题标题】:How to get rid of captha in selenium?如何摆脱硒中的验证码?
【发布时间】:2021-06-01 13:11:43
【问题描述】:

当我想使用 selenuim 登录 google 帐户时,captha 出现了。我使用用户代理,但它没有帮助。有人可以帮帮我吗?

Captha picture

    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)

【问题讨论】:

  • 如何去除硒中的captha? - 要求运营商为您提供无验证码的环境。
  • 问“ops”是什么意思?

标签: python python-3.x selenium selenium-webdriver selenium-chromedriver


【解决方案1】:

这是一个已知问题。
你真的不能用硒绕过验证码。
请参阅here 了解更多信息

【讨论】:

  • 不应该是评论吗?
  • 我认为不会,因为这是对这个问题的回答。我不确定每个答案都必须很长并且包含代码。
  • 好吧,如果有人只是谷歌这个 - 如何自动化验证码,他们将了解你上面写的任何内容。
  • 正确。此外,通过一些谷歌搜索,您可以解决这里提出的大多数问题。而且不仅在这里。
  • 取决于哪个验证码,1,2,或3(在3中没有解决方案)
猜你喜欢
  • 2014-08-11
  • 1970-01-01
  • 2014-09-22
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-07-05
  • 2019-06-17
相关资源
最近更新 更多