Unable to import data from nse

from datetime import datetime
import jason
import pandas as pd

import requests
r=requests.get("https://www.nseindia.com/dist/js/sections/live-market/liveMarketEquity.js").json()
print(r)
#df=pd.dataframe()

Hello Ashvin,

You can directly call a js file using requests.get and also parse it using json(). You will first have to replace the above link with a link that gives json text as response. Thereafter, you can use json() to parse the response.