This script allows you to submit your YouTube Music watch history to Listenbrainz.
- Python 3.x installed on your computer.
- An active Listenbrainz account.
- Your YouTube Music watch history file from Google Takeout.
- Visit Google Takeout.
- From the list of data to include, deselect all except for YouTube and YouTube Music.
- Within the YouTube and YouTube Music section, select only history and then watch history.
- Click Next step and follow the prompts to download your watch history, which will be provided as a
watch-history.json
file.
- Download
YTMusic2listenbrainz.py
script from this repository. - Place your
watch-history.json
file in the same directory as theYTMusic2listenbrainz.py
script. - Enter your
listenbrainz_token
inYTMusic2listenbrainz.py
.
Open a terminal or command prompt and navigate to the directory containing the script and your watch history file. Run the script with the following command:
python3 YTMusic2listenbrainz.py
After running the script, log in to your Listenbrainz account to verify that your watch history has been submitted successfully.