Code Monkey home page Code Monkey logo

spotify-stats-python's Introduction

spotify-stats-python

A script written in Python to get your Spotify stats :)

image

Features

  • Display the currently playing song at the top with a distinctive color.
  • Show your top 5 artists based on listening history.
  • Present the top 5 songs you've listened to recently.
  • Highlight your top 5 albums.
  • Share the top 5 songs you've recently played.

Requirements

  • Python 3.x
  • spotipy library (install it via pip install spotipy)
  • colorama library (install it via pip install colorama)

Setup Instructions

  1. Clone this repository.

  2. Install the dependencies pip install -r requirements.txt

  3. Configure Spotify API credentials: Create a Spotify App on the Spotify Developer Dashboard. Obtain your CLIENT_ID and CLIENT_SECRET. Set the REDIRECT_URI to http://localhost:5173/callback/ (you can set it to any URL you want to but you'll have to edit REDIRECT_URI in the script as well to match it) in your Spotify App settings.

  4. Update stats.py: Replace the placeholders in the get_spotify_stats function with your CLIENT_ID and CLIENT_SECRET.

  5. You can now run python stats.py to get the stats.

spotify-stats-python's People

Contributors

ni5arga avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.