Another Bhavcopy Downloader (ABCD)

josh1

Well-Known Member
Following earlier instructions, I had already copied curl.exe in the systems 32 folder. Also, as per earlier suggestion, had removed it from the ABCDCurl folder.

It seems everything is working, it's downloading the bhavcopies etc. Only that when it comes to unzipping the bhavcopy, it's not being able to do it. Don't know what's going wrong. Also, it seems I'm the only one facing this issue because I've got to believe there have to be others who're using it on Windows 7. Thanks
Open the downloaded files. Capture first 5 lines and post here.
 

kum2305

Active Member
Open the downloaded files. Capture first 5 lines and post here.
Following are the first 5 lines of the cm bhavcopy after I extracted it manually with 7z

1586337371521.png


Following are the first 5 lines of the nse index file

1586337516162.png



BSE Bhavcopy, ABCCurl gives the message, "Server made a boo boo ...... BSE Bhavcopy not found-error"
 

josh1

Well-Known Member
C
Following are the first 5 lines of the cm bhavcopy after I extracted it manually with 7z

View attachment 41542

Following are the first 5 lines of the nse index file

View attachment 41543


BSE Bhavcopy, ABCCurl gives the message, "Server made a boo boo ...... BSE Bhavcopy not found-error"
Check if there is unzip.exe in path. If not, copy it in system 32 or windows folder.
 

kum2305

Active Member
C

Check if there is unzip.exe in path. If not, copy it in system 32 or windows folder.
Don't know how to check if unzip.exe is there in the path but I did copy unzip in the System 32 folder but it didn't help. As per my message on Apr 1, still getting the "Bad zip file.. could not extract Bhavcopy" error. Replicating my earlier message again below:

curl -L -f -k --max-time 10 --url http://www1.nseindia.com/content/historical/EQUITIES/2020/APR/cm01APR2020bhav.csv.zip -o /ABCD/NSE/cm01APR2020bhav.csv.zip
Downloaded NseBhavcopy Zip
curl -f -k --max-time 10 https://www.nseindia.com/archives/equities/mto/MTO_01042020.DAT -o /ABCD/NSE/MTO01042020.DAT
Downloaded NseDeliverable

Bad zip file.. could not extract Bhavcopy
 

kum2305

Active Member
Don't know how to check if unzip.exe is there in the path but I did copy unzip in the System 32 folder but it didn't help. As per my message on Apr 1, still getting the "Bad zip file.. could not extract Bhavcopy" error. Replicating my earlier message again below:

curl -L -f -k --max-time 10 --url http://www1.nseindia.com/content/historical/EQUITIES/2020/APR/cm01APR2020bhav.csv.zip -o /ABCD/NSE/cm01APR2020bhav.csv.zip
Downloaded NseBhavcopy Zip
curl -f -k --max-time 10 https://www.nseindia.com/archives/equities/mto/MTO_01042020.DAT -o /ABCD/NSE/MTO01042020.DAT
Downloaded NseDeliverable

Bad zip file.. could not extract Bhavcopy

Following is the copy paste of the ABCDCurl.r script opened in Notepad (attached):
 

Attachments

Not able to download bhavcopy data.
Following error coming in log.txt

curl -L -f -k —max-time 10 —url http://www1.nseindia.com/content/historical/EQUITIES/2020/APR/cm13APR2020bhav.csv.zip -o /ABCD/NSE/cm13APR2020bhav.csv.zip
NSE/EQUITIES/bhavcopy not found 2020-04-13
curl -f -k —max-time 10 —url https://www1.nseindia.com/content/historical/DERIVATIVES/2020/APR/fo13APR2020bhav.csv.zip -o /ABCD/NSEFO/fo13APR2020bhav.csv.zip
NSE Futures/bhavcopy not found
curl -f -k —max-time 10 —url https://www1.nseindia.com/content/indices/ind_close_all_13042020.csv -o /ABCD/NSE/ind_close_all_13042020.csv
index file not found 2020-04-13


Please help
 
Not able to download bhavcopy data.
Following error coming in log.txt

curl -L -f -k —max-time 10 —url http://www1.nseindia.com/content/historical/EQUITIES/2020/APR/cm13APR2020bhav.csv.zip -o /ABCD/NSE/cm13APR2020bhav.csv.zip
NSE/EQUITIES/bhavcopy not found 2020-04-13
curl -f -k —max-time 10 —url https://www1.nseindia.com/content/historical/DERIVATIVES/2020/APR/fo13APR2020bhav.csv.zip -o /ABCD/NSEFO/fo13APR2020bhav.csv.zip
NSE Futures/bhavcopy not found
curl -f -k —max-time 10 —url https://www1.nseindia.com/content/indices/ind_close_all_13042020.csv -o /ABCD/NSE/ind_close_all_13042020.csv
index file not found 2020-04-13


Please help
I was getting the same error. Following are the two things I did:

1) If using Windows 7, put the curl.exe in Systems 32 folder (in Windows 10, you don't have to do this)
2) Take out curl.exe from ABCD folder
 

josh1

Well-Known Member
Anyone has any suggestion(s) to my problem?
Click on "Start ". Then type cmd in the popup. Command.com will open.
type - cd C:\ABCD and enter
you should be in ABCD folder.
type --- dir unzip.exe and press enter.
System should show you unzip.exe file. If it is not there, install ABCDcurl again.
If it shows, type -- unzip /NSE/cm13APR2020bhav.csv.zip
Let us know what it does.
If it successfully extracts, bhavcopy for 13Apr,
then take somebody's help to copy unzip.exe to c:\windows\system32 folder
 

Similar threads