Nsepy not working

hello there, i am using python for Windows. The problem is that the basic program using nsepy

from nsepy import get_history

from datetime import datetime



start = datetime(2017, 1, 1)

end = datetime(2018, 1, 1)



data = get_history(symbol='SBIN',start=start,end=end)



data.head()



is giving no output even though i have installed nespy package.

 

If you are not getting any error then most likely using print should solve the problem



print(data.head())



Generally, if you are using jupyter notebook then the last line gets printed for default. And if you are using any other code editor then need to explicitly mention the print command.



I hope this helps.

from nsepy import get_history

from history import *

from datetime import date as dt

import csv

datas= raw_input("Enter symbol: ") 

end_day = date.today()

start_day = end_day - timedelta(500)



try :

    print('Downloading from NSE')        

    stock = get_history(datas, start_day, end_day)

except:

    print('Downloading not start')







print(stock)





it is working code but it cannot work before 11.59 am 

I use this code to my blog 

 <a href="https://barawakar.com/yes-bank-limited/">team</a> 

  https://barawakar.com/yes-bank-limited/