Hi again, I was trying to download stock market data from below link :
https://www.nseindia.com/products/content/equities/equities/archieve_eq.htm Input choice : Select Report: Bhavcopy Date(DD-MM-YYYY): 03-03-2010 If you put manual input as above, then we will get option for manual download of file : cm03MAR2010bhav.csv.zip However I then tried to use R to have some automatic download : > download.file('https://www.nseindia.com/content/historical/EQUITIES/2010/MAR/cm03MAR2010bhav.csv.zip', > 'aa.zip') trying URL 'https://www.nseindia.com/content/historical/EQUITIES/2010/MAR/cm03MAR2010bhav.csv.zip' Error in download.file("https://www.nseindia.com/content/historical/EQUITIES/2010/MAR/cm03MAR2010bhav.csv.zip", : cannot open URL 'https://www.nseindia.com/content/historical/EQUITIES/2010/MAR/cm03MAR2010bhav.csv.zip' In addition: Warning message: In download.file("https://www.nseindia.com/content/historical/EQUITIES/2010/MAR/cm03MAR2010bhav.csv.zip", : cannot open URL 'https://www.nseindia.com/content/historical/EQUITIES/2010/MAR/cm03MAR2010bhav.csv.zip': HTTP status was '403 Forbidden' Ofcourse I I place below direct link 'https://www.nseindia.com/content/historical/EQUITIES/2010/MAR/cm03MAR2010bhav.csv.zip' in address-bar of my Chrome, I am denied permission Do you have any idea what is going on here? Do I need to get some setting? Any pointer will be highly appreciated. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.