https://github.com/csteinmetz1/sfilt

Python tool for filtering and sorting Spotify tracks based on existing playlists

https://github.com/csteinmetz1/sfilt

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (8.4%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Python tool for filtering and sorting Spotify tracks based on existing playlists

Basic Info
  • Host: GitHub
  • Owner: csteinmetz1
  • License: mit
  • Language: Python
  • Default Branch: master
  • Size: 126 KB
Statistics
  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created almost 8 years ago · Last pushed over 7 years ago
Metadata Files
Readme License

README.md

sFilt

Python tool for filtering and sorting Spotify tracks based on existing playlist

Setup

Install spotipy

$ pip install spotipy

Create the keys.json file and set your client_id and client_secret after creating a Spotify API Client ID.

{ "client_id" : "YOUR_CLIENT_ID", "client_secret" : "YOUR_CLIENT_SECRET", "redirect_uri" : "http://localhost:8888/callback" }

Viral playlist filtering

Currently this script is setup to pull the top 50 viral tracks from each Spotify country chart ( listed in viral_50.json ) and then compare these tracks with the tracks on the Global Viral 50 and US Viral 50 charts. Any tracks that match are discarded and then a list of tracks not on the Global or US charts remain. Next these tracks are sorted based upon their popuality or on the distance of their feature vectors ( using Spotify audio features ).

playlist

Here is an example of a filtered playlist sorted by features vectors.

Usage

Simply run the sfilt.py script

$ python sfilt.py

This will save a new playlist to your Spotify account.

Note

This code is based upon the code in sBucket. I am planning on building this out to be a more general purpose (modular) library that enables easy playlist filtering and generation on Spotify.

Owner

  • Name: Christian J. Steinmetz
  • Login: csteinmetz1
  • Kind: user
  • Location: London, UK
  • Company: @aim-qmul

Machine learning for Hi-Fi audio. PhD Researcher at C4DM.

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: about 1 year ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels