This pulls the HN front page to hacker-news.html and uses git log/show to access a history of changes.
See git scraping & Flat Data for more info about the approach.
export TARGET="hacker-news.html"
curl https://news.ycombinator.com > $TARGET
git add $TARGET
git commit -m ":robot: scraped to $TARGET"
This is run automatically by .github/workflows/scrape.yml
git log --pretty=format:"%H %at" -- "$TARGET" | while read commit timestr
do
git show "$commit:$TARGET" > tmp_${timestr}_${commit}.html
done