swapniljariwala / nsepy

Python Library to get publicly available data on NSE website ie. stock quotes, historical data, live indices
https://nsepy-xyz.web.app
Other
748 stars 376 forks source link

Unable to get data, empty dataframe returned #143

Open 87sam12 opened 4 years ago

87sam12 commented 4 years ago

I get empty dataframe for any call to the service. Is it internally using yahoo finance or what is the method used? Or as it shows beautiful soup as a dependency, does it work by web scraping? But if its web scraping something must be returned right?

image

aachuvicky commented 4 years ago

Did it resolve?

strikar21 commented 4 years ago

I get empty dataframe for any call to the service. Is it internally using yahoo finance or what is the method used? Or as it shows beautiful soup as a dependency, does it work by web scraping? But if its web scraping something must be returned right?

image

try restarting your system. it worked for me also i think nse is slow to respond till 12 am

shampavman commented 4 years ago

i just downloaded and tried out. I"m also facing the same issue. Empty df for any date range i provide. and i'm looking at getting EQ tData = get_history(symbol='BPCL',start=date(2015,1,1),end=date(2015,1,10)) tData Empty DataFrame Columns: [Symbol, Series, Prev Close, Open, High, Low, Last, Close, VWAP, Volume, Turnover, Trades, Deliverable Volume, %Deliverble] Index: []

vish0511 commented 4 years ago

Just uninstall & re-install the nsepy. It resolved for me. But this issue happens everytime.

shampavman commented 4 years ago

Thank you for your response. I've written a web scraper to do this for me now and it works.. Thanks for your efforts on nsepy though

On Tue, 30 Jun, 2020, 14:53 vish0511, notifications@github.com wrote:

Just uninstall & re-install the nsepy. It resolved for me. But this issue happens everytime.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/swapniljariwala/nsepy/issues/143#issuecomment-651674224, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAUJ5V5TAX4RMSGPGDTDY53RZGVI3ANCNFSM4NJV7QYA .

Manish6329 commented 4 years ago

I get empty dataframe for any call to the service. Is it internally using yahoo finance or what is the method used? Or as it shows beautiful soup as a dependency, does it work by web scraping? But if its web scraping something must be returned right? image

try restarting your system. it worked for me also i think nse is slow to respond till 12 am

While fetching index value you have to type index as True: nifty = get_history(symbol='NIFTY',start = date(2020,5,1), end = date(2020,5,20), index = True)

Manish6329 commented 4 years ago

I get empty dataframe for any call to the service. Is it internally using yahoo finance or what is the method used? Or as it shows beautiful soup as a dependency, does it work by web scraping? But if its web scraping something must be returned right?

image

Yaa, it happens sometime, I'm using nsepy_API for past 2 years, sometimes I also get the blank dataframe, try updating all the library inside nsepy, your problem will resolve and yes web scraping is not the ultimate solution.