This application analyzes your Spotify listening history using advanced data science and Machine Learning techniques, providing insights into your music preferences and offering personalized song recommendations. It features a graphical user interface for easy interaction and visualization of your listening habits.
- Upload and analyze your Spotify listening history
- View your top songs, artists, and genres
- Explore your longest and least listened to songs
- Visualize your top artists with an interactive graph
- Get personalized song recommendations
- Python 3.x
- pip (Python package manager)
- Clone the repository.
- Install the required dependencies: pip install -r requirements.txt
- Request your CSV listening history data from Spotify . Ensure this is in the same folder as this project directory. If you don't have it ready but still want to try the app, we provide a sample listening history file in the directory (StreamingHistory0Sample.csv) for you to use.
- Run the application in terminal: python Final.py
- Use the GUI to navigate through different features:
- Click "Upload" to input your Spotify listening history CSV file
- Use "Summary" to view various analyses of your listening habits
- Try "Recommend" for personalized song suggestions
Ensure the following files are in your project directory:
Final.py: Main application filedataset.csv: Reference dataset for genre informationtracks.csv: Large dataset of Spotify tracks for recommendations- Your Spotify listening history CSV file (e.g.,
StreamingHistory0.csv)
- Python
- pandas: For data manipulation and analysis
- cmu_graphics: For creating the graphical user interface
- PIL (Python Imaging Library): For image processing
- The application uses sample datasets for demonstration. For the most accurate results, ensure you have up-to-date and comprehensive datasets.
- Processing large datasets may take some time, especially for the recommendation features.
If you encounter any issues:
- Ensure all required CSV files are in the correct location
- Check that your Spotify listening history CSV is formatted correctly
- Make sure you have installed all required dependencies
Contributions to improve the application are welcome.
- Spotify for providing user data and API
- Dataset sources:
- Spotify Tracks Dataset
- Spotify Dataset 1921-2020, 600k+ Tracks