Lurker News

Comments (209) 36 threads

Earlier comments
ajxs2 replies#
Very cool. Have you considered incorporating an option for following links within the same domain to a certain depth? I remember using tools such as this in the past to save all the content from certain websites.
flatroze3 replies#
Thank you! I'll add it as an issue, since it could definitely be useful for "archiving" certain resources more than 1 level deep. Do you remember the name of that tool by any chance?
xtreme#
I have used HTTrack in the past for this.
ajxs2 replies#
I wish I could remember the exact tool, this was over a decade ago. If you just do a quick internet search for such a tool you'll likely find whatever I used, it certainly wasn't anything sophisticated. It was a Windows GUI tool designed specifically for the task. Something makes me think that 'GetRight' tool might have been able to do the same thing, but I can't seem to see the feature on their website.
flatroze#
Ah, I remember using something like that. I thought that tool was saving it into one .html file, but data URLs didn't exist back then, so creating directories alongside with HTML files was the only option to "replicate" a web resource, now I understand exactly what you were talking about. I'll do some more digging around and implement that in the nearest future. I may need to make all the requests async first to make sure that saving one resource with decent depth won't take too long.
olakeasseillo#
yes, "teleport pro" for win98, you could scrape a site and duplicate locally or scrape only for specific file type or size, had recursive link follow depth option and created several threads for the requests(sniff)
rmetzler#
IIRC this was the mode Snowden used to bulk-download the NSA data.
jp_sc1 reply#
SiteSucker for macOS does it.
flatroze#
Well, at least it's not called iSuck.
masklinn1 reply#
It looks like it creates a normal HTML file (embedding assets as data URI) so it should require no special client / support.

HTMLD, WARC, MTHML, MAFF and webarchive are all "container" formats which bundle assets next to the HTML using various methods (resp. bundle, custom, multipart MIME, zip and binary plist).

emerongi#
The issue with this is that if the website requires some external API for content, it might not work properly.

https://webrecorder.io/ solves that problem by recording all interactions and then replaying them as needed.
> Webrecorder takes a new approach to web archiving by “recording” network traffic and processes within the browser while the user interacts with a web page. Unlike conventional crawl-based web archiving methods, this allows even intricate websites, such as those with embedded media, complex Javascript, user-specific content and interactions, and other dynamic elements, to be captured and faithfully restaged.

tannhaeuser1 reply#
Well you could do that for a long time with MHTML, WARC, etc. downloaders, including those available in browsers via "Save Page as", though CSS imports aren't covered by older tools (are they by yours?). Anyway, congrats for completing this as a Rust first-timer project, which certainly speaks to the quality of the Rust ecosystem. For using this approach as offline browser, of course, the problem is that Ajax-heavy pages using Javascript for loading content won't work, including every React and Vue sites created in the last five years (but you could make the point those aren't worth your attention as a reader anyway).
flatroze#
CSS imports are covered by converting .css files into data URLs, later I will parse those and embed resources found within stylesheets as well.
dtjohnnymonkey#
Thank you for this. I’ve been looking for something that does this exact thing. I don’t like any of the other HTML archiving formats .

Load more comments