Skip to content

This application allows users to access their Spotify data, including top tracks, top artists, and search functionality, directly from the command line. It leverages the Spotify Web API to fetch and display user-specific information based on the provided commands.

License

Notifications You must be signed in to change notification settings

elianmanzueta/spotify-cli-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spotify CLI App

CodeFactor Maintainability example workflow

Overview

This app is a Python-based command-line interface that allows users to interact with the Spotify Web API. It enables you to retrieve your top songs and artists, and search for tracks and artists on Spotify.

Features

  • Get Top Songs and Artists: Easily access your favorite songs and artists based on your Spotify listening history. Similar to projects like Receiptify.
  • Search Functionality: Search for tracks and artists directly from the command line.

Installation

Requires Python >= 3.12

  1. Clone the repository:

    git clone https://github.com/elianmanzueta/spotify-cli-app.git

  2. Navigate to the app directory:

    cd spotify-cli-app

  3. Install dependencies:

    pip install -r requirements.txt

Usage

Help

Get your top tracks

python src/spotify_cli.py get-top-tracks

Options include:

  • Limit
  • Time range

Top Songs

Get top tracks with options

python src/spotify_cli.py get-top-tracks --limit 5 --time-range short_term

Top Songs With Options

Get your top artists

python src/spotify_cli.py get-top-artists

Options include:

  • Limit
  • Time range

Top Artists

Get top artists with options

python src/spotify_cli.py get-top-artists --limit 6 --time-range long_term

Top Artists With Options

Search

Search for Artists

python src/spotify_cli.py search --artist "Weezer"

Search Artists

Search for Tracks

python src/spotify_cli.py search --track "Buddy Holly"

Search Tracks

Configuration

Before using the app, you'll need to set up your Spotify API credentials.

Create a Spotify Developer account and create a new application.

Go to your app's settings and get the Client ID, Client Secret, and Redirect URI.

Add your Client ID, Client Secret, and Redirect URI to a .env file in the project root.

License

Distributed under the MIT License. See LICENSE for more information.

About

This application allows users to access their Spotify data, including top tracks, top artists, and search functionality, directly from the command line. It leverages the Spotify Web API to fetch and display user-specific information based on the provided commands.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages