Error in Parsing Json data from Nseindia Option chain
This program was working earlier but now stopped working. import requests import pandas as pd import logging from datetime import datetime logging.basicConfig(level=logging.DEBUG) baseurl = "https://www.nseindia.com/" headers = {'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, ' 'like Gecko) ' 'Chrome/80.0.3987.149 Safari/537.36', 'accept-language': 'en,gu;q=0.9,hi;q=0.8', 'accept-encoding': 'gzip, deflate, br'} session = requests.Session() request = session.get(baseurl, headers=headers,