The other way to connect the two services is to head to the Last.fm About page and click on the Track My Music tab at the top of the screen. ![]() If it is your first time making the connection, you will need to enter your Spotify username and password. generate_top_albums_collage ( username = "username", cols = 5, rows = 5, period = "7day" ) image. To start scrobbling, simply click on the Connect button next to the Spotify logo. save ( "5x5 album collage.png", "png" ) # Or just call the method directly image = collage_generator. generate ( entity = "album", username = "username", cols = 5, rows = 5, period = "7day" ) image. Usage/Examples from llage_generator import CollageGenerator collage_generator = CollageGenerator ( lastfm_api_key = "YOUR_API_KEY", lastfm_api_secret = "YOUR_API_SECRET" ) # Returns a PIL Image object image = collage_generator. Install lastfmcollagegenerator with pip pip install lastfmcollagegenerator Choose the period to calculate the top (7day, 1month, 3month, 6month, 12month, overall.Choose the number of rows and columns (for now, up to 5). ![]() It supports different configurations like the grid size or the period. Python library to create Last.fm collages from user's top albums.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |