久久久久久久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 驗證碼?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                問題描述

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

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

                當我嘗試抓取某些內(nèi)容時,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 客戶端,你應(yīng)該避免解決/繞過 Google 驗證碼.

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

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

                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(縮寫為 ...完全自動化用于區(qū)分計算機和人類的公共圖靈測試...)是一種用于計算以確定用戶是否是人類的挑戰(zhàn)-響應(yīng)測試.

                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 服務(wù)于兩個完全不同的目的,理想情況下不應(yīng)該用于完成任何相互關(guān)聯(lián)的任務(wù).

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

                話雖如此,reCAPTCHA 可以輕松檢測網(wǎng)絡(luò)流量并將您的程序識別為 Selenium 驅(qū)動 bot.

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

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

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

                • 網(wǎng)站可以確定您的腳本/程序的首要屬性是您的顯示器大小.所以建議不要使用常規(guī)的Viewport.
                • 如果您需要向網(wǎng)站發(fā)送多個請求,請繼續(xù)更改每個請求的用戶代理.在這里您可以找到關(guān)于 如何在 Selenium 中更改 Google Chrome 用戶代理?
                • 要模擬 類人 行為,您可能需要減慢腳本執(zhí)行速度,甚至超出 WebDriverWait 和 expected_conditions 誘導(dǎo) time.sleep(secs).在這里您可以找到關(guān)于如何的詳細討論在 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

                您可以在以下位置找到一些相關(guān)的討論:

                You can find a couple of related discussion in:

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

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

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

                相關(guān)文檔推薦

                How to make a discord bot that gives roles in Python?(如何制作一個在 Python 中提供角色的不和諧機器人?)
                Discord bot isn#39;t responding to commands(Discord 機器人沒有響應(yīng)命令)
                Can you Get the quot;About mequot; feature on Discord bot#39;s? (Discord.py)(你能得到“關(guān)于我嗎?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伦理片 | 欧美久久国产精品 | 欧美日韩一区不卡 | 国产激情视频 | 日韩色综合 | 大陆一级毛片免费视频观看 | 国产成人精品a视频一区www | 日日爱夜夜操 | 91久久精品一区二区三区 | 久久精品国产99国产精品亚洲 | 国产一区二区三区精品久久久 | 日韩av资源站 | 国产成人叼嘿视频在线观看 | 亚洲一区不卡在线 | 麻豆精品久久久 | 少妇一级淫片免费播放 | 成人免费视频观看视频 | 一级毛片大全免费播放 | 人成精品 | 高清久久| 国产成人精品综合 | 在线小视频 | 中文字幕视频一区 | 国产区在线 | 99久久精品国产一区二区三区 | 精品在线99| 日韩成人免费中文字幕 | 99久久精品免费看国产四区 | 久久久久久91 | 久久99精品久久久久久青青日本 | 亚洲午夜小视频 | 91免费电影| 国产综合久久久久久鬼色 | 久久99久久99 | 91精品国产麻豆 | 国产在线资源 | 玖玖精品视频 | 福利网址|