Skip to content

elena-krismer/mkply

Repository files navigation

mkply

Create a Spotify Playlist for yourself or a joint playlist with your friends.

This package is a wrapper around Spotipy.

Installation

$ pip install git+https://github.com/elena-krismer/mkply.git

Usage

User Authenification

More details about the authorization you can find on Spotipy.

Create playlist for myself
import mkply
sp = mkply.Listener(client_id="your_client_id",
                             client_secret="your_client_secret",
                             redirect_uri = "your_redirect_uri", 
                             user_id = "your_user_id")
sp.create_playlist(save = True)
Create playlist with friends
import mkply
friend_1 = mkply.Listener(client_id="friend_1_client_id",
                             client_secret="friend_1_client_secret",
                             redirect_uri = "friend_1_redirect_uri")
friend_2 = mkply.Listener(client_id="friend_2_client_id",
                             client_secret="friend_2_client_secret",
                             redirect_uri = "friend_2_redirect_uri") 

# Spotify main account - here playlists will be saved
main_account = mkply.Listener(client_id="your_client_id",
                             client_secret="your_client_secret",
                             redirect_uri = "your_redirect_uri", 
                             user_id = "your_user_id")

sp = mkply.MultiListener(list_of_listeners = [friend_1, friend_2, main_account] , spotify_account = main_account)             
sp.create_playlist(save = True)

Contributing

Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.

License

mkply was created by Elena Krismer. It is licensed under the terms of the MIT license.

Credits

mkply was created with cookiecutter and the py-pkgs-cookiecutter template.

About

Create Spotify Playlist

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages