This converter gets the JSON data from the given link and convert that JSON data to the MySQL Database in the localhost.
- MySQL
- Python3
- PyMySQL
- Input the MySQL credentials in the config.ini file.
- Run json_to_mysql.py and input the name of the database you want to use or create the database.
-
get_data.py
Get the json format data from the given link in the code. You can enter the link in the get_data.py.
-
create_mysql_tables.py
This file contains different funciton which execute the different SQL queries (like creating database, tables and insert of data). Generally, this is the utility file which is used by json_to_mysql.py
-
json_to_mysql.py
This is the main/driver file. This file recives the json format data from get_data.py and then save that data into MySQL database.
-
python_mysql_dbconfig.py
This script file reads the config.ini which contains the information required for the connection to the MySQL server.