Top 10 Songs | Number of Songs Per Month | Cumulative Plays per Artist over Time |
---|---|---|
![]() |
![]() |
![]() |
This project is a simple Python script that analyzes your Last.fm listening data. It provides visualizations for the top 10 songs, the number of songs listened to per month, and cumulative plays per artist over time. The script uses pandas for data manipulation and matplotlib for plotting.
- Top 10 Songs: Displays the top 10 most played songs.
- Number of Songs Per Month: Shows the number of songs listened to each month.
- Cumulative Plays per Artist over Time: Plots the cumulative plays for the top 10 songs over time.
- Python 3.x
- pandas
- matplotlib
-
Clone the repository:
git clone https://github.com/GhoulBoii/python-lastfm-analysis.git cd python-lastfm-analysis
-
Install the required libraries:
pip install pandas matplotlib
-
Prepare your data: Go to this website and enter your Last.fm username. You will get a csv of your data.
-
Run the script:
python lastfm_analysis.py
-
Follow the on-screen instructions: Select an option from the menu to generate the desired visualization.
- This script is intended for educational purposes and personal use.
- The script does not handle errors related to missing or malformed data.
- Last.fm to CSV Convertor for giving an easy way to convert the Last.fm data
This project is licensed under the GPL-3.0 License. See the LICENSE file for details.