Hi,
I used to download data from "nseindia" website using attached macro code.
Macro does the following job.
1. take the inputs from "Input" sheet about indices name, start date and end date.
2. Generate the URL according to input data. Dynamically created URL - https://www.nseindia.com/products/d...TIES 50&fromDate=30-09-2017&toDate=31-10-2017
In this URL "NIFTY%20BANK&fromDate=30-09-2017&toDate=31-10-2017" is dynamically created part of whole URL based on user input.
3. Download data available at this link in CSV format, in to "Total Return Index" sheet.
The CSV file is opened in web browser itself.
Now nseindia has come up with new website - niftyindices
I am not able to figure out new dynamic URL from where CSV files get downloaded. More specifically, I am not able to find out format of dynamic URL created by new site.
It will be helpful if someone can help me find out format of new dynamic URL for downloading CSV file.
Website path from where dynamic data is downloaded.
Old - visit nseindia site -> https://nseindia.com/products/content/equities/indices/historical_total_return.htm -> Select Index as "Nifty 50" from drop down -> enter start and end date -> click "Get Data" button -> click "Download file in csv format"
New - visit niftyindices site - http://niftyindices.com/reports/historical-data -> select "Total Returns Index Value" from drop down on left top side -> select start date and end date -> press "submit" button -> click on "csv format"
I used to download data from "nseindia" website using attached macro code.
Macro does the following job.
1. take the inputs from "Input" sheet about indices name, start date and end date.
2. Generate the URL according to input data. Dynamically created URL - https://www.nseindia.com/products/d...TIES 50&fromDate=30-09-2017&toDate=31-10-2017
In this URL "NIFTY%20BANK&fromDate=30-09-2017&toDate=31-10-2017" is dynamically created part of whole URL based on user input.
3. Download data available at this link in CSV format, in to "Total Return Index" sheet.
The CSV file is opened in web browser itself.
Now nseindia has come up with new website - niftyindices
I am not able to figure out new dynamic URL from where CSV files get downloaded. More specifically, I am not able to find out format of dynamic URL created by new site.
It will be helpful if someone can help me find out format of new dynamic URL for downloading CSV file.
Website path from where dynamic data is downloaded.
Old - visit nseindia site -> https://nseindia.com/products/content/equities/indices/historical_total_return.htm -> Select Index as "Nifty 50" from drop down -> enter start and end date -> click "Get Data" button -> click "Download file in csv format"
New - visit niftyindices site - http://niftyindices.com/reports/historical-data -> select "Total Returns Index Value" from drop down on left top side -> select start date and end date -> press "submit" button -> click on "csv format"