pynse Library to extract realtime and historical data from NSE website from pynse import * nse=Nse() nse.info('SBIN')