Giter VIP home page Giter VIP logo

artistify's Introduction

Artistify

Artistify creates artist-specific playlists from existing ones.

Usage

.env file

Please prepare a .env file first.

CLIENT_ID=xxxxxxxxxx
CLIENT_SECRET=xxxxxxxxxx

usage of each api

# show_tracks_in_playlist

show (song, list of artists) in a playlist

$ python main.py show-tracks-in-playlist 6CpQWdViAFjjnXCEudZVQR
Getting playlist info for ID: 6CpQWdViAFjjnXCEudZVQR
--------------------------------------------------
track: Elastic Heart
artists: Sia
--------------------------------------------------
track: Rainbow
artists: Sia
--------------------------------------------------
track: Sugar (feat. Francesco Yates)
artists: Robin Schulz, Francesco Yates
--------------------------------------------------
track: Titanium (feat. Sia)
artists: David Guetta, Sia
--------------------------------------------------
track: Dusk Till Dawn (feat. Sia) - Radio Edit
artists: ZAYN, Sia
--------------------------------------------------
track: Yellow
artists: Coldplay
--------------------------------------------------
track: Adventure of a Lifetime
artists: Coldplay
--------------------------------------------------
track: Shape of My Heart
artists: Backstreet Boys

# output_tracks_by_artist_in_playlist

This command outputs a JSON summary of the songs in the specified playlist by artist. The following example is based on my playlist as input.

$ python main.py output-tracks-by-artist-in-playlist 3F9A3KdcaLXnI59AM9a4uV "hoge.json" 
$ cat hoge.json
{"23zg3TcAtWQy7J6upgbUnj": ["5rb9QrpfcKFHM1EUbSIurX"], "7sfl4Xt5KmfyDs2T3SVSMK": ["5rb9QrpfcKFHM1EUbSIurX"], "3ipn9JLAPI5GUEo4y4jcoi": ["5rb9QrpfcKFHM1EUbSIurX"], "4gzpq5DPGxSnKTe4SA8HAU": ["3AJwUDP919kvQ9QcozQPxg"], "5ZsFI1h6hIdQRw2ti0hz81": ["1j4kHkkpqZRBwE0A4CN4Yv"], "5WUlDfRSoLAfcVSX1WnrxN": ["1j4kHkkpqZRBwE0A4CN4Yv", "79weO6yONe0oyPFWXjJroW", "6kwAbEjseqBob48jCus7Sz"], "1Cs0zKBU1kc0i8ypK3B9ai": ["79weO6yONe0oyPFWXjJroW"]}
$ python main.py output-tracks-by-artist-in-playlist 3F9A3KdcaLXnI59AM9a4uV "hoge.json" name
$ cat hoge.json
{"USHER": ["Yeah! (feat. Lil Jon & Ludacris)"], "Lil Jon": ["Yeah! (feat. Lil Jon & Ludacris)"], "Ludacris": ["Yeah! (feat. Lil Jon & Ludacris)"], "Coldplay": ["Yellow"], "ZAYN": ["Dusk Till Dawn (feat. Sia) - Radio Edit"], "Sia": ["Dusk Till Dawn (feat. Sia) - Radio Edit", "Titanium (feat. Sia)", "Elastic Heart"], "David Guetta": ["Titanium (feat. Sia)"]}

# artisfy

$ python main.py artisfy 3F9A3KdcaLXnI59AM9a4uV

The playlists for the artists Sia, ZAYN, Coldplay, and Usher, respectively, will be created.

original new_playlists Sia_playlist

ToDo

Based on the image above, it's clear that the song "yeah" features Usher as the main vocalist, but playlists for Lil Jon and Ludacris were also created. I'll revise it to create playlists only for Usher.

artistify's People

Contributors

gesoges0 avatar

Watchers

 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.