by rjeli · 6y ago · 0 comments
Relatedly, I wish I could automatically freeze and archive every single web page I visit, minus heavy media, possibly with very low quality images. I tried squid and the internet archive’s proxies, but MITM’ing myself is just slightly too annoying. There’s SingleFile[0] which does pretty much exactly what I want, ripping every single page into a self-extracting HTML+zip file, but it runs inside the browser so it adds a little delay after you navigate to a page, again slightly too annoying. Anyone have a recommendation for a seamless way to do this? Otherwise I’ll probably roll my own extension that pipes every URL to a local process that rips in the background with e.g. selenium.
I wish there were a way to run fully privileged extensions in Firefox, i.e. in the browser context instead of the page...
I might add an option in the extension for delegating to a "daemon" (based on the CLI code [1]) the capture of a page.
[1] https://github.com/gildas-lormeau/SingleFile/tree/master/cli
Been using it for a little while and it's definitely interesting although I'm not sure it backs up images as well, but could be worth a try for you.
That said, I use pinboard to save/bookmark links, and I paid for the archival account type which automatically stores the pages I save. There's a handy bookmarklet so saving a page is a one click operation.
While the civilization doesn't depend on my data, I always like to have a backup, so paying for a service to store my web archive is barely more future-proof than saving links.
Or this: https://github.com/Rhizome-Conifer/conifer
Maybe this: https://github.com/webrecorder/pywb
Or WWWOFFLE: http://www.gedanken.org.uk/software/wwwoffle/
Also pinboard.in but that's $
At work we instrument our puppeteer (headless chrome scripted) tests so that it basically sumps out the Dom and other important rendering things. I then wrote a tool that lets one step through the dump with an interactive timeline showing the current state of the page along with console events, user generated events, etc.
So the power is there if you want to get your hands really, really dirty.
I had to step away from using electron because I encountered segfaults like `Received signal 11 SEGV_MAPERR 000000000060` just on visiting cnn.com and clicking one of their nav links (without much going on otherwise, which I found kinda crazy).
Electron also only recently added support for PDFs, and it's still a little buggy. I was able to get around most of these with pdf.js.
I ended up using a combination of chrome extension for injecting stuff into webpage + rpc to a local node.js server running inside an electron app (for convenience). I only made this for personal use, so I'm ok with <arbitrary_caveat>s.
Yeah, web browsers have so much compatibility code this does not surprise me...
I personally save pages as plain text though so that I can use grep etc. later on. Pages with many essential graphics I also save as PDF or epub.
With earlier versions of firefox I used the shelve addon, which unfortunately isn't supported anymore.
It isn't perfect but it is really really nice when it works.
I just wonder...
Storing web pages has a cost.
Having notes for each bookmark (which I usually use to record key data points I find in web pages), and also notes at the topic and board levels (which can be used for similar purposes): is there still any benefit (above cost) of keeping an exact copy of the webpage you bookmarked?
I guess it all depends on what's the chance of needing to go back to older bookmarks to re-visit something, right?
Thanks for your feedback!