[Python] Issue in downloading pre open market file from NSE website using Selenium

Discussão em 'Python' iniciado por Stack, Julho 9, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to download the pre open market from NSE website using Selenium.

    url = 'https://www.nseindia.com/market-data/pre-open-market-cm-and-emerge-market'

    I am trying to download the Category 'All' data.

    url = 'https://www.nseindia.com/market-data/pre-open-market-cm-and-emerge-market'
    driver = webdriver.Chrome()
    driver.get(url)
    element_select = driver.find_element(By.ID,'sel-Pre-Open-Market')
    element = Select(element_select)
    element.select_by_visible_text('All') # select All
    time.sleep(10)
    driver.find_element(By.ID,'downloadPreopen').click() # click Download


    I could see the Category list is changing to 'All' but data is not being downloaded. Would appreciate guidance and also if there is any way to control the downloaded file.

    Continue reading...

Compartilhe esta Página