This Python script processes your YouTube Music watch history (extracted via Google Takeout) to generate a list of your most-played songs. It supports both .json
and .html
files and includes options to export the top songs in multiple formats (txt, json, csv) and visualize the top 10 most played songs.
- Supports JSON and HTML files: Automatically detects whether the input file is in JSON or HTML format.
- Counts song plays: Extracts song titles and the number of times they were played.
- Exports top songs: Saves the list of top songs to a
.txt
,.json
, or.csv
file.