import requests import json import pandas as pd new_url = \'https://www.nseindia.com/api/option-chain-indices?symbol=NIFTY\' headers = {\'User-Agent\':\'Mozilla/5.0\'} r