News for hackers. Stuff that matters.
Re:Show HN: Irchiver, your full-resolution personal web archive by lambdaba on Friday December 03, 2021 @05:53PM (#29436640)
I gotchu fam: https://github.com/Y2Z/monolith

Note: this bundles external resources like images, css and scripts inside the file

Re:Show HN: Irchiver, your full-resolution personal web archive by overeater on Friday December 03, 2021 @06:08PM (#29436773)
I don't think this is automatic is it? So you have to save each page you want
Re:Show HN: Irchiver, your full-resolution personal web archive by lambdaba on Friday December 03, 2021 @06:11PM (#29436794)
Oh, true, I missed that.

In chrome it would be quite trivial to tail the history read from the sqlite db and get the latest url, and frankly something like Archivebox would be more powerful (truly grabbing all resources). Unfortunately in Firefox it's not possible to tail the history without unlocking the database, so the solution would be slightly more hackish but still feasible.

For illustration, this is the script I use to grab Chrome history:

  profile=$HOME/.config/google-chrome/Default

  sqlite3 "file:$profile/History?immutable=1" \
    "select datetime(last_visit_time/1000000-11644473600, 'unixepoch'), url from  urls order by last_visit_time asc"
It would be pretty easy to use `watch` or `inotifywait` to do this regularly and call Archivebox with the new urls.