Save Json file contents to CSV file in python/pandas
问题 How to get the "data" information into a csv table as shown at the end (and also, the right 'headers' so that the source server doesn't throw me off thinking I am scraping)? The code I wrote so far is as below. import requests, json headers = {'User-Agent': 'Mozilla/5.0'} data_json = requests.get('https://www1.nseindia.com/live_market/dynaContent/live_watch/stock_watch/foSecStockWatch.json', headers=headers) print(data_json) file = open('make_csv', 'w') file.write(str(data_json)) file.close()