久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<legend id='UBh08'><style id='UBh08'><dir id='UBh08'><q id='UBh08'></q></dir></style></legend>

    • <bdo id='UBh08'></bdo><ul id='UBh08'></ul>
    <tfoot id='UBh08'></tfoot>

    <small id='UBh08'></small><noframes id='UBh08'>

    1. <i id='UBh08'><tr id='UBh08'><dt id='UBh08'><q id='UBh08'><span id='UBh08'><b id='UBh08'><form id='UBh08'><ins id='UBh08'></ins><ul id='UBh08'></ul><sub id='UBh08'></sub></form><legend id='UBh08'></legend><bdo id='UBh08'><pre id='UBh08'><center id='UBh08'></center></pre></bdo></b><th id='UBh08'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='UBh08'><tfoot id='UBh08'></tfoot><dl id='UBh08'><fieldset id='UBh08'></fieldset></dl></div>

      如何使用 Selenium 和 Python 繞過 Google 驗證碼?

      How can I bypass the Google CAPTCHA with Selenium and Python?(如何使用 Selenium 和 Python 繞過 Google 驗證碼?)
        <legend id='f4hGQ'><style id='f4hGQ'><dir id='f4hGQ'><q id='f4hGQ'></q></dir></style></legend>
          <tbody id='f4hGQ'></tbody>
      • <tfoot id='f4hGQ'></tfoot>
          <bdo id='f4hGQ'></bdo><ul id='f4hGQ'></ul>
            1. <i id='f4hGQ'><tr id='f4hGQ'><dt id='f4hGQ'><q id='f4hGQ'><span id='f4hGQ'><b id='f4hGQ'><form id='f4hGQ'><ins id='f4hGQ'></ins><ul id='f4hGQ'></ul><sub id='f4hGQ'></sub></form><legend id='f4hGQ'></legend><bdo id='f4hGQ'><pre id='f4hGQ'><center id='f4hGQ'></center></pre></bdo></b><th id='f4hGQ'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='f4hGQ'><tfoot id='f4hGQ'></tfoot><dl id='f4hGQ'><fieldset id='f4hGQ'></fieldset></dl></div>

              <small id='f4hGQ'></small><noframes id='f4hGQ'>

                本文介紹了如何使用 Selenium 和 Python 繞過 Google 驗證碼?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                如何使用 Selenium 和 Python 繞過 Google 驗證碼?

                How can I bypass the Google CAPTCHA using Selenium and Python?

                當我嘗試抓取某些內容時,Google 會給我一個驗證碼.我可以使用 Selenium Python 繞過 Google 驗證碼嗎?

                When I try to scrape something, Google give me a CAPTCHA. Can I bypass the Google CAPTCHA with Selenium Python?

                例如,它是 Google reCAPTCHA.您可以通過以下鏈接查看此驗證碼:https://www.google.com/recaptcha/api2/演示

                As an example, it's Google reCAPTCHA. You can see this CAPTCHA via this link: https://www.google.com/recaptcha/api2/demo

                推薦答案

                開始使用 Selenium 的 Python 客戶端,你應該避免解決/繞過 Google 驗證碼.

                To start with using Selenium's Python clients, you should avoid solving/bypass Google CAPTCHA.

                Selenium 使瀏覽器自動化.現在,您想用這種能力實現什么完全取決于個人,但主要是為了通過瀏覽器客戶端自動化 Web 應用程序以進行測試,當然不限于此.

                Selenium automates browsers. Now, what you want to achieve with that power is entirely up to individuals, but primarily it is for automating web applications through browser clients for testing purposes and of coarse it is certainly not limited to that.

                另一方面,CAPTCHA(縮寫為 ...完全自動化用于區分計算機和人類的公共圖靈測試...)是一種用于計算以確定用戶是否是人類的挑戰-響應測試.

                On the other hand, CAPTCHA (the acronym being ...Completely Automated Public Turing test to tell Computers and Humans Apart...) is a type of challenge–response test used in computing to determine if the user is human.

                因此,SeleniumCAPTCHA 服務于兩個完全不同的目的,理想情況下不應該用于完成任何相互關聯的任務.

                So, Selenium and CAPTCHA serves two completely different purposes and ideally shouldn't be used to achieve any interrelated tasks.

                話雖如此,reCAPTCHA 可以輕松檢測網絡流量并將您的程序識別為 Selenium 驅動 bot.

                Having said that, reCAPTCHA can easily detect the network traffic and identify your program as a Selenium driven bot.

                但是,有一些通用方法可以避免在網頁抓取時被檢測到:

                However, there are some generic approaches to avoid getting detected while web scraping:

                • 網站可以確定您的腳本/程序的首要屬性是您的顯示器大小.所以建議不要使用常規的Viewport.
                • 如果您需要向網站發送多個請求,請繼續更改每個請求的用戶代理.在這里您可以找到關于 如何在 Selenium 中更改 Google Chrome 用戶代理?
                • 要模擬 類人 行為,您可能需要減慢腳本執行速度,甚至超出 WebDriverWait 和 expected_conditions 誘導 time.sleep(secs).在這里您可以找到關于如何的詳細討論在 Python 中休眠 Selenium WebDriver 幾毫秒
                • The first and foremost attribute a website can determine your script/program by is through your monitor size. So it is recommended not to use the conventional Viewport.
                • If you need to send multiple requests to a website, keep on changing the User Agent on each request. Here you can find a detailed discussion on Way to change Google Chrome user agent in Selenium?
                • To simulate humanlike behavior, you may require to slow down the script execution even beyond WebDriverWait and expected_conditions inducing time.sleep(secs). Here you can find a detailed discussion on How to sleep Selenium WebDriver in Python for milliseconds

                但是,在幾個用例中,我們能夠與 reCAPTCHA 進行交互使用 Selenium,您可以在以下討論中找到更多詳細信息:

                However, in a couple of use cases we were able to interact with the reCAPTCHA using Selenium and you can find more details in the following discussions:

                • 如何點擊使用 Selenium 和 Java 的 reCAPTCHA
                • CSS 選擇器使用 Selenium 和 VBA Excel 進行 reCAPTCHA 支票簿
                • 查找reCAPTCHA 元素并點擊它——Python + Selenium

                您可以在以下位置找到一些相關的討論:

                You can find a couple of related discussion in:

                • 如何通過 Python 使用 GeckoDriver 和 Firefox 使 Selenium 腳本無法檢測?
                • 是否存在無法檢測到的 Selenium WebDriver 版本?
                • reCAPTCHA 3 如何知道我在使用 Selenium/chromedriver?

                這篇關于如何使用 Selenium 和 Python 繞過 Google 驗證碼?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                How to make a discord bot that gives roles in Python?(如何制作一個在 Python 中提供角色的不和諧機器人?)
                Discord bot isn#39;t responding to commands(Discord 機器人沒有響應命令)
                Can you Get the quot;About mequot; feature on Discord bot#39;s? (Discord.py)(你能得到“關于我嗎?Discord 機器人的功能?(不和諧.py))
                message.channel.id Discord PY(message.channel.id Discord PY)
                How do I host my discord.py bot on heroku?(如何在 heroku 上托管我的 discord.py 機器人?)
                discord.py - Automaticaly Change an Role Color(discord.py - 自動更改角色顏色)
              1. <tfoot id='vwG39'></tfoot>

              2. <legend id='vwG39'><style id='vwG39'><dir id='vwG39'><q id='vwG39'></q></dir></style></legend>

                    <tbody id='vwG39'></tbody>
                    <bdo id='vwG39'></bdo><ul id='vwG39'></ul>
                    <i id='vwG39'><tr id='vwG39'><dt id='vwG39'><q id='vwG39'><span id='vwG39'><b id='vwG39'><form id='vwG39'><ins id='vwG39'></ins><ul id='vwG39'></ul><sub id='vwG39'></sub></form><legend id='vwG39'></legend><bdo id='vwG39'><pre id='vwG39'><center id='vwG39'></center></pre></bdo></b><th id='vwG39'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='vwG39'><tfoot id='vwG39'></tfoot><dl id='vwG39'><fieldset id='vwG39'></fieldset></dl></div>

                    <small id='vwG39'></small><noframes id='vwG39'>

                        • 主站蜘蛛池模板: 欧美日韩综合精品 | 91亚洲国产亚洲国产 | 国产日韩av一区二区 | 美女精品一区 | 久久免费精品视频 | 日韩av三区 | 91网视频 | 性国产丰满麻豆videosex | 韩国av一区二区 | 欧美精品一区二区三区在线 | 欧美a级成人淫片免费看 | 国产成人一区 | 国产精品一区二区三区久久久 | 亚洲欧美国产一区二区三区 | 国产成人高清成人av片在线看 | 很很干很很日 | 成人av网站在线观看 | 亚洲福利av | 亚洲精品在线免费看 | 国产亚洲一区二区在线观看 | 曰韩三级| 99这里只有精品视频 | 精品国产三级 | 免费一区二区三区 | 日韩激情在线 | 国产一级电影在线观看 | 宅女噜噜66国产精品观看免费 | 国产中的精品av涩差av | 在线观看免费av网 | 欧美八区 | 欧美视频在线观看 | 日韩视频专区 | 中文字幕久久精品 | 久久精品亚洲精品 | 午夜免费av| 91九色在线观看 | 久久久久中文字幕 | 久久精品成人热国产成 | 欧美一区2区三区3区公司 | 伊人中文字幕 | 久久综合伊人 |