https://github.com/karan-malik/dbwithpython
Parsing XML and JSON data and storing it in SQLite databases using Python
https://github.com/karan-malik/dbwithpython
coursera database json mysql python python3 pythonforeverybody sql sqlite sqlite3 xml
Last synced: about 2 months ago
JSON representation
Parsing XML and JSON data and storing it in SQLite databases using Python
- Host: GitHub
- URL: https://github.com/karan-malik/dbwithpython
- Owner: Karan-Malik
- Created: 2020-07-15T10:10:31.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-15T10:43:16.000Z (almost 5 years ago)
- Last Synced: 2025-01-14T08:52:31.101Z (3 months ago)
- Topics: coursera, database, json, mysql, python, python3, pythonforeverybody, sql, sqlite, sqlite3, xml
- Language: Python
- Homepage:
- Size: 78.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Databases with Python
Parsing xml and json data and storing it in SQLite databases using Python## Overview
The two python files database_xml.py and database_json.py use XML and JSON data respectively, parse and clean it and then store the data into the two sqlite databases present in
the repository, namely tracks.sqlite and roster2.sqlite. These databases can be viewed and edited using MySQL or by using the DB Browser computer application, which can be downloaded
from this [link](https://sqlitebrowser.org/dl/).The Python library **sqlite3** is used for creating and manipulating the databases.
## About the Data
The data used is available as a part of the Python for Everybody Specialization ([link](https://www.coursera.org/specializations/python?skipBrowseRedirect=true)) provided by the
University of Michigan on [Coursera](https://coursera.org).The XML data is available as Library.xml and the Json data is available as roster_data.json in the repository.
## How to Use
1. Download the data from the repository and set the folder containing the downloaded data as the working directory.2. Make sure you have all the libraries used in the two python files. In case you need to download any of the libraries, use this command on your Command Prompt:
```
pip install 'your library name'
```3. Once you have all the libraries imported, copy the code from database_xml.py or database_json.py and run it.