Skip to content

GhoulBoii/python-lastfm-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Lastfm Analysis

Top 10 Songs Number of Songs Per Month Cumulative Plays per Artist over Time
Top 10 Songs Number of Songs Per Month Cumulative Plays per Artist over Time

Introduction

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.

Features

  • 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.

Getting Started

Prerequisites

  • Python 3.x
  • pandas
  • matplotlib

Installation

  1. Clone the repository:

    git clone https://github.com/GhoulBoii/python-lastfm-analysis.git
    cd python-lastfm-analysis
  2. Install the required libraries:

    pip install pandas matplotlib

Usage

  1. Prepare your data: Go to this website and enter your Last.fm username. You will get a csv of your data.

  2. Run the script:

    python lastfm_analysis.py
  3. Follow the on-screen instructions: Select an option from the menu to generate the desired visualization.

Disclaimers

  • This script is intended for educational purposes and personal use.
  • The script does not handle errors related to missing or malformed data.

Credits

License

This project is licensed under the GPL-3.0 License. See the LICENSE file for details.

About

Visual analysis of music data using last.fm, pandas and matplotlib

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages