nsepy icon indicating copy to clipboard operation
nsepy copied to clipboard

Unable to get data, empty dataframe returned

Open 87sam12 opened this issue 4 years ago • 7 comments

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

87sam12 avatar May 25 '20 17:05 87sam12

Did it resolve?

aachuvicky avatar Jun 01 '20 11:06 aachuvicky

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

strikar21 avatar Jun 02 '20 18:06 strikar21

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: []

shampavman avatar Jun 26 '20 14:06 shampavman

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

vish0511 avatar Jun 30 '20 09:06 vish0511

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, [email protected] 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 .

shampavman avatar Jun 30 '20 17:06 shampavman

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 avatar Aug 10 '20 09:08 Manish6329

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.

Manish6329 avatar Aug 10 '20 09:08 Manish6329