I am trying to download stockmarket data from NSE website, till 2018 i was able to get the file downloaded using CURL in command Line, But now its not working anymore.
Please help me a way to download it from command line.
Working : Using Chrome and clicking on the link Not Working : CURL method, copying the link to chrome in another tab is also not working
curl -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36" https://www.nseindia.com/content/historical/EQUITIES/2019/JAN/cm01JAN2019bhav.csv.zip
<HTML><HEAD>
<TITLE>Access Denied</TITLE>
</HEAD><BODY>
<H1>Access Denied</H1>
You don't have permission to access "http://www.nseindia.com/content/historical/EQUITIES/2019/JAN/cm01JAN2019bhav.csv.zip" on this server.<P>
Reference #18.93fa56b8.1546394430.40ca86c6
</BODY>
</HTML>
A zip file has to be downloaded without being corrupted.
Aucun commentaire:
Enregistrer un commentaire