Code Monkey home page Code Monkey logo

spotifyplaylistgenerator's Introduction

SpotifyPlaylistGenerator

Generate playlists for your spotify account from command line interface:

  • similar tracks to any track (Uses last.fm's similarTracks method)
  • your loved tracks from last.fm
  • your top tracks (weekly, monthly,...) from last.fm
  • top tracks by an artist, country or tag.

Installation

  1. Download repository
  2. Install requirements
  3. Fill config.ini file with your API keys
  4. Use one of the functions below

Note: On the first run, open given url with a browser and complete authorization. Then paste redirected url to the console.

Usage

Get Similar Tracks

parameters:

  • artist (required):
  • track (required):
  • count (optional): default = 20
  • playlistName (optional): default = "Similar Tracks to {track}"

main.py getsimilar --artist="tame impala" --track="let it happen" --count=20

main.py getsimilar --artist="empire of the sun" --track="we are the people" --count=10 --playlistName="example playlist"

Get Top Tracks

parameters:

  • lastFMUserName (required):
  • period (optional): 7day | 1month | 3month | 6month | 12month | overall. default = 1month
  • count (optional): default = 20
  • playlistName (optional): default = "{lastFMUserName}'s Top Songs"

main.py usertoptracks lastFMUserName="yourUserName" --period=6month --count=30

Get Loved Tracks

parameters:

  • lastFMUserName (required):
  • playlistName (optional): default = "Loved Songs by {lastFMUserName}"

main.py userlovedtracks "yourUserName"

Get Top Albums

parameters:

  • lastFMUserName (required):
  • period (optional): 7day | 1month | 3month | 6month | 12month | overall. default = 1month
  • count (optional): default = 20
  • playlistName (optional): default = "{lastFMUserName}'s Top Songs"

main.py usertopalbums lastFMUserName="yourUserName" --period=6month --count=30

Get Top Tracks by Country

Get the most popular tracks on Last.fm last week by country

parameters:

  • country (required):
  • count (optional): default = 50
  • playlistName (optional): default = "{country} Top {count}"

main.py toptracksbycountry --country=turkey --count=100

Get Top Tracks by an Artist

parameters:

  • artist (required):
  • count (optional): default = 20
  • playlistName (optional): default = "The best {artist} songs"

main.py toptracksbyartist --artist="muse" --count="10"

Get Top Tracks by Tag

Get the top tracks tagged by this tag.

parameters:

  • tag (required):
  • count (optional): default = 25
  • playlistName (optional): default = "Top {tag} songs"

main.py toptracksbytag --tag="indie"

Get Chart Top Tracks

Get the top tracks chart

parameters:

  • count (optional): default = 25
  • playlistName (optional): default = "Top songs by Last.FM"

main.py toptrackschart

Show Top Tags

Use this to view the most popular tags on Last.fm

main.py showtoptags

Show Top Tags For A Track

Returns the top tags for given track

parameters:

  • artist (required)
  • track (required)

main.py showtoptagsfortrack --artist="therion" --track="birt of venus illegitima"

Show Top Artists by Country

It shows the most popular artists on Last.FM by country.

parameters:

  • country (required)

main.py showtopartistsbycountry --country="turkey"

...

...

Requirements:

spotifyplaylistgenerator's People

Watchers

James Cloos 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.