https://github.com/vedantwalia/mymusicvisualisationproject
https://github.com/vedantwalia/mymusicvisualisationproject
data datavisualisation json jupyter-notebook pandas python xml xml-parser
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/vedantwalia/mymusicvisualisationproject
- Owner: vedantwalia
- Created: 2024-05-01T09:28:49.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-24T08:39:02.000Z (almost 2 years ago)
- Last Synced: 2025-01-19T13:17:46.364Z (over 1 year ago)
- Topics: data, datavisualisation, json, jupyter-notebook, pandas, python, xml, xml-parser
- Language: Jupyter Notebook
- Homepage:
- Size: 10.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MyMusicVisualisationProject
A small project I decided to bulid for getting better hands on experience on Pandas.
You can run `pip install -r requirements.txt` after cloning the repo to ensure that you have all the libraries required to replicate the project.
I shall also try to emulate this project on PowerBI, for which I intend to covert the XML file to JSON since I prefer working with the same in the Power Query Editor. Since Apple uses the nortious to parse 'plist' format for the XML, I have used two python scripts, one to swap the `` tags in the XML with `` tag since JSON doesn't have a `date` datatype, which causes type errors.
You can use the `XmlToJson.py` script to convert the plist XML to JSON. The script essentially replaces the tags in the XML and then converts the XML to JSON.
If you are on MacOS, you can also use the `plutil` command to convert the XML to JSON. (Please note that the `` elements have to be converted to `` first)
`plutil -convert json -o output.json input.plist`
You can replicate the same on your end by exporting your `Library.xml` file from your Apple Music by going to `File > Library > Export Library` and running the Python code against the file.