Click here to Skip to main content
14,696,502 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to process the retrieved data and store it in a database of your choice. This should be stored using a high-resolution index appropriate for the data type. 

What I have tried:

import requests
import json

url = ""

response = requests.get(url)
data = response.text
parsed = json.loads(data)

print(json.dumps(parsed, indent=1))
Updated 17-Jul-20 21:32pm

1 solution

Why not use MySQL? You can use the Python mysql.connector library to establish a connection between the database and your program.

Then you can begin executing SQL commands like INSERT to store the data in there.
Member 14891535 18-Jul-20 6:35am
Thanks. I have a follow up question regarding mySQL

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900