This is a basic tool that can get data from a Youtube Music Playlist, shuffle the songs, then reorder them as a 'manual' ordering.
- clone the repository to a location of your choosing using
git clone https://github.com/FlyingFaller/YoutubeMusicShuffler - In the reposity run
uv syncto install the packages and python version.
- uv Python project manager found here: https://github.com/astral-sh/uv
- Create a browser.json from the browser.json.template. See https://ytmusicapi.readthedocs.io/en/1.11.0/setup/browser.html for details.
- Open Network tab of inspect element and navigate to the page https://music.youtube.com/library
- Find the POST to https://music.youtube.com/youtubei/v1/browse?prettyPrint=false
- In the Request Headers right click and 'copy value' of the Authorization and Cookie into the browser.json template
- Set the PLAYLIST_ID in main.py using the ID at the end of the playlist URL.
- Run main.py with desired shuffle and plotting settings.