---
title: "Comment by SURAJSINGH RAJPUT on \"Using Selenium to Download Corporate Action Data on Indian Stocks\" | Hashnode"
description: "Great work dude, keep up the good work. BSE seems to have changed the HTML code slightly. Need to update those XPath selectors. This is the worst part of a prog"
url: "https://hashnode.com/posts/using-selenium-to-download-corporate-action-data-on-indian-stocks/604d8e04cd951c0ca4c0140e/comment/615e556a2d874c46dfa3ca1d"
---

[Discussion](https://hashnode.com/posts/using-selenium-to-download-corporate-action-data-on-indian-stocks/604d8e04cd951c0ca4c0140e)

Comment [Using Selenium to Download Corporate Action Data on Indian Stocks](https://hashnode.com/posts/using-selenium-to-download-corporate-action-data-on-indian-stocks/604d8e04cd951c0ca4c0140e)

[SURAJSINGH RAJPUT](https://hashnode.com/@Robonized)

[Oct 7, 2021](https://hashnode.com/posts/using-selenium-to-download-corporate-action-data-on-indian-stocks/604d8e04cd951c0ca4c0140e/comment/615e556a2d874c46dfa3ca1d)

Great work dude, keep up the good work.

BSE seems to have changed the HTML code slightly. Need to update those XPath selectors.

This is the worst part of a programmed scraper, I have a scraper for Screener.in that scrapes EPS and Sales data and there too I face this very same issue every few months.

Changes:

-   Purpose selector id has changed from @id="ContentPlaceHolder1\_ddlPurpose" to @id="ddlPurpose"
    
-   Submit button id changed from @id="ContentPlaceHolder1\_btnSubmit" to @id="btnSubmit"
    
-   Download link selector changed from //_\[@id="ContentPlaceHolder1\_lnkDownload1"\]/img to //_\[@id="lnkDownload"\]/i
    

[Yash Roongta](https://hashnode.com/@yash12392)

[Oct 9, 2021](https://hashnode.com/posts/using-selenium-to-download-corporate-action-data-on-indian-stocks/604d8e04cd951c0ca4c0140e/comment/615e556a2d874c46dfa3ca1d#reply-61620b2b8e8734462af60358)

Hi [SURAJSINGH RAJPUT](https://hashnode.com/@Robonized) thanks for highlighting this change in the website. I am actually working on a much better Corporate Actions Scraper at the moment and will update this blog and my Youtube channel with the new method very soon. Just having a bit of time off to release some pressure!

[SURAJSINGH RAJPUT](https://hashnode.com/@Robonized)

[Oct 10, 2021](https://hashnode.com/posts/using-selenium-to-download-corporate-action-data-on-indian-stocks/604d8e04cd951c0ca4c0140e/comment/615e556a2d874c46dfa3ca1d#reply-6162ee3753401f641ba10584)

[Yash Roongta](https://hashnode.com/@yash12392) Yeah that's very important too.

That's pretty good to know. I will be waiting eagerly for the post.

[Srinivas Maheedhar](https://hashnode.com/@Mahi9)

[Sep 1, 2022](https://hashnode.com/posts/using-selenium-to-download-corporate-action-data-on-indian-stocks/604d8e04cd951c0ca4c0140e/comment/615e556a2d874c46dfa3ca1d#reply-63107c0275af73ad1f063b2b)

Thanks Yash, had to do few changes outlined above ...worked beaut. Need to see correlation of NSE ones to BSE, hopefully smooth :D

Btw, ElementClickInterceptedException: element click intercepted: Element is not clickable at point (46, 901) while selected\_purpose.click(). Had to get rid of it by adding WebDriverWait(driver, 20).until(EC.element\_to\_be\_clickable((By.XPATH, f'//\*\[@id="ddlPurpose"\]/option\[@value=\\"{corp\_act}\\"\]'))).click()
