A Python script that retrieves the highest voted performance from each song by the band King Gizzard and the Lizard Wizard and then builds a Youtube Music playlist automatically, with each of the songs.


The band King Gizzard and the Lizard Wizard has a huge library, and an even bigger library of live performances. Listening to all of them to find the best would take days. The fan site Live Gizz Rankings helpfully provides community curation of many performances of the band, but no playlist of the top tracks and no access to the underlying data (as of writing this). I wanted to listen to the best tracks but didn't want to manually copy and paste each track into a playlist, so instead I opted to scrape the site's contents using Selenium (to avoid issues caused by dynamic data loading). This successfully retrieved each song’s name and the performance voted best by the community.


Once retrieved, the Youtube API is then called with a request searching for each song’s unique ID from the details retrieved. While in almost all cases the search produced matching top results, extra precautions have been taken in the script to iterate through all the search results to ensure a direct match. As well, the script produces a log file with any tracks that had been found to be completely missing. As of writing, this produced only five issues, where all are due to a mismatched library between Youtube and Bandcamp (the source the voting site uses).


Visit Github Repo