This project performs an ETL (Extract, Transform, Load) operation using Spotify's API. It extracts track metadata from a list of Spotify track URLs, transforms the data into a structured format, and loads it into a MySQL database.
- β Extracts track data (name, artist, album, popularity, duration) using the Spotify Web API
- β Parses URLs from a text file
- β
Transforms and stores the data in a local MySQL database (
spotify_db) - β
Uses
Spotipy, a Python client for the Spotify Web API - β Handles API errors and malformed URLs gracefully
- Language: Python 3.x
- Libraries:
spotipy(Spotify API)pandas(optional for future extensions)re(Regular Expressions)pymysql(MySQL connection)matplotlib(for future visualizations)
- Database: MySQL
- API: Spotify Web API