Generates streaming music playlists create from various song charts.
YouTube Music
Spotify
YouTube Music
Spotify
YouTube Music
Spotify
YouTube Music
Spotify
YouTube Music
Spotify
Not available due to Soundcloud closing access to API keys.
YouTube Music
Spotify
The script requires some environment variables to run.
PLAYLIST_TIME_ZONE
- Set the time zone for dates, particularly the generated playlists.
YOUTUBE_MUSIC_AUTH_CONFIG
- thejson
content from these instructions- The YouTube Music playlist ids:
YOUTUBE_MUSIC_PLAYLIST_ID_TRIPLEJ_UNEARTHED
YOUTUBE_MUSIC_PLAYLIST_ID_TRIPLEJ_MOST_PLAYED
YOUTUBE_MUSIC_PLAYLIST_ID_DOUBLEJ_MOST_PLAYED
YOUTUBE_MUSIC_PLAYLIST_ID_RADIO_4ZZZ_MOST_PLAYED
YOUTUBE_MUSIC_PLAYLIST_ID_LASTFM_MOST_POPULAR_AUS
SPOTIFY_AUTH_REFRESH_TOKEN
- the refresh token obtained fromSpotify.login_init
SPOTIFY_AUTH_CLIENT_ID
- the client id from the dashboardSPOTIFY_AUTH_CLIENT_SECRET
- the client secret from the dashboard from the/authorize
endpoint- The Spotify playlist ids:
SPOTIFY_PLAYLIST_ID_TRIPLEJ_UNEARTHED
SPOTIFY_PLAYLIST_ID_TRIPLEJ_MOST_PLAYED
SPOTIFY_PLAYLIST_ID_DOUBLEJ_MOST_PLAYED
SPOTIFY_PLAYLIST_ID_RADIO_4ZZZ_MOST_PLAYED
SPOTIFY_PLAYLIST_ID_LASTFM_MOST_POPULAR_AUS
LASTFM_AUTH_API_KEY
- the Last.fm API Key
Local development can require running the script multiple times in quick succession. This is not a great thing to do for web services. There is the possibility to cache output for each class.
Change the cache setting in the Downloader in main.py
.
With thanks to sigma67 for ytmusicapi.