|
|
|
|
|
by alexnorton
340 days ago
|
|
I was able to give this a try on every YouTube video I've ever watched by exporting the history from Google Takeout: https://takeout.google.com/settings/takeout/custom/youtube?p... And then a combination of pup and jq to parse the video titles from the HTML file: cat watch-history.html \
| pup '.outer-cell .mdl-grid .content-cell:nth-child(2) json{}' \
| jq -r '.[] .children[0] | select(.tag != "br") | select(.text | startswith("https://www.youtube.com/watch?v=") | not) | .text' \
> videos.txt
|
|