---
title: "Discussion on \"Using Selenium to Download Corporate Action Data on Indian Stocks\" | Hashnode"
description: "Discussion on \"Using Selenium to Download Corporate Action Data on Indian Stocks\". Learn to download Corporate Action Data on Indian stocks using Python and Selenium from the Bombay Stock Exchange in this comprehensive guide"
url: "https://hashnode.com/posts/using-selenium-to-download-corporate-action-data-on-indian-stocks/604d8e04cd951c0ca4c0140e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Using Selenium to Download Corporate Action Data on Indian Stocks](https://tradewithpython.hashnode.dev/using-selenium-to-download-corporate-action-data-on-indian-stocks?utm_source=hashnode&utm_medium=feed)

Learn to download Corporate Action Data on Indian stocks using Python and Selenium from the Bombay Stock Exchange in this comprehensive guide

Mar 14, 2021 · 6 min read · tradewithpython.hashnode.dev  
Updated Sep 2, 2023  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#selenium](https://hashnode.com/tag/selenium)
-   [#python-beginner](https://hashnode.com/tag/python-beginner)
-   [#python-projects](https://hashnode.com/tag/python-projects)
-   [#100daysofcode](https://hashnode.com/tag/100daysofcode)

## Written by

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

@yash12392 · London, United Kingdom

  
[View profile](https://hashnode.com/@yash12392)

Finance & Coding Enthusiast

I am a CFA and FRM Charterholder. I used to work as a Portfolio Implementation Manager for Aviva Investors managing £3bn+in Assets Under Management in the UK. I am very passionate about educating people on how they can make more money with their existing investments sustainably.

## Responses 2

Markdown supported · ⌘↵ to post

[Sukanya Balasubramanian](https://hashnode.com/@Suku)

[Apr 15, 2022](https://hashnode.com/posts/using-selenium-to-download-corporate-action-data-on-indian-stocks/604d8e04cd951c0ca4c0140e/comment/625948952f84e0d4fc33b143)

Yash, as a Non IT, i didn't understand the GitHub coding , I tried but failed to understand. Please provide a video .Also i wish to download the whole corporate action data for my project.

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

[Apr 21, 2022](https://hashnode.com/posts/using-selenium-to-download-corporate-action-data-on-indian-stocks/604d8e04cd951c0ca4c0140e/comment/625948952f84e0d4fc33b143#reply-6261a07ad82f4558aff86042)

Hi [Sukanya Balasubramanian](https://hashnode.com/@Suku) sorry the code is meant to be read after you have covered the basics of Python which is a complete series you can access here [tradewithpython.com/learn-and-trade-with-python](https://tradewithpython.com/learn-and-trade-with-python) After that, you may be able to download the whole data you need :)

[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()
