Recent submissions

Comment · 2 months ago
Comment · 1 year ago
Comment · 1 year 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
Comment · 13 years ago
Comment · 14 years ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton