vsjha18 / nsetools

Realtime Data From National Stock Exchange (India)
http://nsetools.readthedocs.io
MIT License
807 stars 421 forks source link

Updated URLs in nse.py to parse the old NSE website #63

Closed arkits closed 4 years ago

arkits commented 4 years ago

Hey there,

The NSE website has been updated, however they're still offering the old website at www1.nseindia.com. I've updated the URLs in nse.py to reflect the same.

I ran the nse_tests.py which has 1 failure - in the test_6th_Dec_1994 test... The URL for downloading bhavs seems to throw a 403.

mohanlate commented 4 years ago

Thank You :)

poseidon7908 commented 4 years ago

I changed the URLs in nse.py - it is still not working. Is there anything else I should do to get this to work?

mohanlate commented 4 years ago

Replace nse.py with https://github.com/vsjha18/nsetools/blob/c27b79b5e567f02426bf642cc45fdfb1d1d615c7/nse.py

the HTTP header requires change aswell

vsjha18 commented 4 years ago

Thanks for fixing this !! I will make a release shortly with the updates.