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

<tfoot id='s8Qj4'></tfoot>

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

    <legend id='s8Qj4'><style id='s8Qj4'><dir id='s8Qj4'><q id='s8Qj4'></q></dir></style></legend>
    • <bdo id='s8Qj4'></bdo><ul id='s8Qj4'></ul>

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

      在 nseindia.com 上單擊獲取數(shù)據(jù)按鈕以獲取每月結(jié)算

      Clicking on Get Data button for Monthly Settlement Statistics on nseindia.com doesn#39;t fetch results using Selenium and Python(在 nseindia.com 上單擊獲取數(shù)據(jù)按鈕以獲取每月結(jié)算統(tǒng)計信息不會使用 Selenium 和 Python 獲取
      <tfoot id='zF0T5'></tfoot>
              <tbody id='zF0T5'></tbody>

          1. <small id='zF0T5'></small><noframes id='zF0T5'>

            <legend id='zF0T5'><style id='zF0T5'><dir id='zF0T5'><q id='zF0T5'></q></dir></style></legend>
              <bdo id='zF0T5'></bdo><ul id='zF0T5'></ul>
                <i id='zF0T5'><tr id='zF0T5'><dt id='zF0T5'><q id='zF0T5'><span id='zF0T5'><b id='zF0T5'><form id='zF0T5'><ins id='zF0T5'></ins><ul id='zF0T5'></ul><sub id='zF0T5'></sub></form><legend id='zF0T5'></legend><bdo id='zF0T5'><pre id='zF0T5'><center id='zF0T5'></center></pre></bdo></b><th id='zF0T5'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='zF0T5'><tfoot id='zF0T5'></tfoot><dl id='zF0T5'><fieldset id='zF0T5'></fieldset></dl></div>
              1. 本文介紹了在 nseindia.com 上單擊獲取數(shù)據(jù)按鈕以獲取每月結(jié)算統(tǒng)計信息不會使用 Selenium 和 Python 獲取結(jié)果的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                問題描述

                我正在嘗試從

                解決方案

                我對你的代碼添加了一些調(diào)整并運行測試如下:

                • 代碼塊:

                  從 selenium 導(dǎo)入 webdriver從 selenium.webdriver.common.by 導(dǎo)入從 selenium.webdriver.support.ui 導(dǎo)入 WebDriverWait從 selenium.webdriver.support 導(dǎo)入 expected_conditions 作為 EC選項 = webdriver.ChromeOptions()options.add_argument("開始最大化")options.add_experimental_option("excludeSwitches", ["enable-automation"])options.add_experimental_option('useAutomationExtension', False)driver = webdriver.Chrome(options=options, executable_path=r'C:UtilityBrowserDriverschromedriver.exe')driver.get('https://www1.nseindia.com/products/content/equities/equities/eq_monthly_statistics.htm')Select(WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.CSS_SELECTOR,"select#h_filetype")))).select_by_visible_text("資本市場")Select(WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.CSS_SELECTOR,"select#yearField")))).select_by_visible_text("2019-2020")WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.CSS_SELECTOR, "input.getdata-button#get[type='image'][src^='/common/images/btn-get-data.gif']))).點??擊()

                <小時>

                觀察

                與您的觀察類似,我遇到了同樣的障礙,但沒有結(jié)果如下:

                <小時>

                深入研究

                似乎 Get Data 元素上的 click() 文本確實發(fā)生了.但是在檢查 webpage 的 驅(qū)動 WebDriver 實例,響應(yīng)被阻塞.

                <小時>

                參考文獻(xiàn)

                一些文檔:

                • 機(jī)器人管理器
                • 機(jī)器人經(jīng)理:基礎(chǔ)
                <小時>

                tl;博士

                幾個相關(guān)的討論:

                • Selenium webdriver:修改導(dǎo)航器.webdriver 標(biāo)志以防止硒檢測
                • 無法使用 Selenium 自動化 Chase網(wǎng)站登錄

                I am trying to scrape data from here.

                By clicking on the capital market and 2019-20 year. I want to click on Get data.

                I have used following code:

                driver = webdriver.Chrome(executable_path=chrome_path,options=chrome_options)
                
                driver.get( nse_cash_keystats_page )
                
                
                 driver.find_element_by_xpath( "http://select[@id='h_filetype']/option[text()='Capital Market ']" ).click()
                
                driver.find_element_by_xpath( "http://select[@id='yearField']/option[text()='2019-2020']" ).click()
                
                     downloadButton=WebDriverWait(driver,20).until(EC.element_to_be_clickable((By.XPATH,'//input[@type="image"][@src="/common/images/btn-get-data.gif"]')))
                
                driver.execute_script("arguments[0].click();", downloadButton)
                

                By using the above code, I am able to click on Get DATA. But it is not showing output.

                Please help me.Thanks in advance.

                解決方案

                I took your code added a few tweaks and ran the test as follows:

                • Code Block:

                  from selenium import webdriver
                  from selenium.webdriver.common.by import By
                  from selenium.webdriver.support.ui import WebDriverWait
                  from selenium.webdriver.support import expected_conditions as EC
                  
                  options = webdriver.ChromeOptions() 
                  options.add_argument("start-maximized")
                  options.add_experimental_option("excludeSwitches", ["enable-automation"])
                  options.add_experimental_option('useAutomationExtension', False)
                  driver = webdriver.Chrome(options=options, executable_path=r'C:UtilityBrowserDriverschromedriver.exe')
                  driver.get('https://www1.nseindia.com/products/content/equities/equities/eq_monthly_statistics.htm')
                  Select(WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.CSS_SELECTOR,"select#h_filetype")))).select_by_visible_text("Capital Market ")
                  Select(WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.CSS_SELECTOR,"select#yearField")))).select_by_visible_text("2019-2020")
                  WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.CSS_SELECTOR, "input.getdata-button#get[type='image'][src^='/common/images/btn-get-data.gif']"))).click()
                  


                Observation

                Similar to your observation, I have hit the same roadblock with no results as follows:


                Deep Dive

                It seems the click() on the element with text as Get Data does happens. But while inspecting the DOM Tree of the webpage you will find that some of the <script> tag refers to JavaScripts having keyword akam. As an example:

                • <script type="text/javascript" src="https://www1.nseindia.com/akam/11/52349752" defer=""></script>
                • <noscript><img src="https://www1.nseindia.com/akam/11/pixel_52349752?a=dD01ZDZiMTA5OGQ0MDljYTYxN2RjMjc3MzBlN2YwMDQ0NjlkZDNiNTMzJmpzPW9mZg==" style="visibility: hidden; position: absolute; left: -999px; top: -999px;" /></noscript>

                Which is a clear indication that the website is protected by Bot Manager an advanced bot detection service provided by Akamai and the response gets blocked.


                Bot Manager

                As per the article Bot Manager - Foundations:


                Conclusion

                So it can be concluded that the request for the data is detected as being performed by Selenium driven WebDriver instance and the response is blocked.


                References

                A couple of documentations:

                • Bot Manager
                • Bot Manager : Foundations

                tl; dr

                A couple of relevant discussions:

                • Selenium webdriver: Modifying navigator.webdriver flag to prevent selenium detection
                • Unable to use Selenium to automate Chase site login

                這篇關(guān)于在 nseindia.com 上單擊獲取數(shù)據(jù)按鈕以獲取每月結(jié)算統(tǒng)計信息不會使用 Selenium 和 Python 獲取結(jié)果的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 中提供角色的不和諧機(jī)器人?)
                Discord bot isn#39;t responding to commands(Discord 機(jī)器人沒有響應(yīng)命令)
                Can you Get the quot;About mequot; feature on Discord bot#39;s? (Discord.py)(你能得到“關(guān)于我嗎?Discord 機(jī)器人的功能?(不和諧.py))
                message.channel.id Discord PY(message.channel.id Discord PY)
                How do I host my discord.py bot on heroku?(如何在 heroku 上托管我的 discord.py 機(jī)器人?)
                discord.py - Automaticaly Change an Role Color(discord.py - 自動更改角色顏色)

                    <tbody id='IqCCy'></tbody>

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

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

                        • <tfoot id='IqCCy'></tfoot>
                        • <legend id='IqCCy'><style id='IqCCy'><dir id='IqCCy'><q id='IqCCy'></q></dir></style></legend>
                          主站蜘蛛池模板: 成人精品一区亚洲午夜久久久 | 午夜爱爱毛片xxxx视频免费看 | 久久网国产 | 婷婷久久综合 | aaaaaaa片毛片免费观看 | 久久精品中文字幕 | 成人在线视频一区 | 国产精品久久国产精品 | 国产精品乱码一区二三区小蝌蚪 | 欧美激情一区二区三区 | 91精品国产综合久久久动漫日韩 | 国产日韩久久久久69影院 | 国产精品久久久久久亚洲调教 | 中文字幕一区二区三区在线观看 | 日韩精品在线免费 | 国产91 在线播放 | 天天射美女 | 一区二区三区av夏目彩春 | 久久精品成人 | 95国产精品| 成人在线免费电影 | 毛片区 | 国产日批| 青青草视频网 | 天天综合亚洲 | 久久亚洲春色中文字幕久久久 | 欧美日韩一 | 久久精品色欧美aⅴ一区二区 | 97人人草 | 亚洲一区电影 | 日日日操 | 成人在线免费视频 | 国产日韩欧美中文 | 伊人色综合久久天天五月婷 | 国产一级电影在线观看 | 国产精品视频一区二区三 | 久久高清精品 | 精品永久 | 荷兰欧美一级毛片 | 欧美成人一区二区三区 | 国产精品av久久久久久久久久 |