Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
sonm10
Helper I
Helper I

Downloading stock data from NSE India

Hello,

I have a requirement to load the stock data from NSE website (nseindia.com). I found that they have the option to download historical data in a csv and the url of the download link (https://www.nseindia.com/api/historical/cm/equity?symbol=HCLTECH&series=[%22EQ%22]&from=26-03-2021&t...). Through the link, I can succesfully download the required data. However, I have to load the data on a daily basis so wanted to connect directly through Power BI Desktop. I tried with the web source in the Desktop but the query keeps loading till I get a "timeout" error. I tried the same url through Postman and got the result instantly. I tried playing with the headers but no luck so far. Any suggestions is appreciated.

I also found that there is a python package (nsepy) that scraps the data from NSE site. However, with the python script, the package cannot be added to the service and requires Personal Gateway(I have standard) for using the packages.

2 REPLIES 2
V-pazhen-msft
Community Support
Community Support

@sonm10 

"Resource Not Found" for me. Is this data displayed in a table in the webpage or it is a csv file for downloading?

 

 

Paul Zheng _ Community Support Team

@V-pazhen-msftThank you for your response.

 

The link is for downloading the csv file. The link only works when we visit nesindia.com first. Must be some header params or likes.

They display the data in the website also - HCL Technologies Limited Share Price Today, Stock Price, Live NSE News, Quotes, Tips – NSE India > Historical Data. I think the NSEPY library is scraping this page (Not sure though, i didn't verify).

Any help is appreciated.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors