5 ms·
Unfortunately that won't allow you to click links in your offline version. you can do this properly with wget: (sorry I don't know how to do code formatting in
by reidjs 5y ago
Unfortunately that won't allow you to click links in your offline version. you can do this properly with wget:
(sorry I don't know how to do code formatting in hackernews)
wget --mirror \
--convert-links \
--html-extension \
--wait=2 \
-o log \
https://example.com https://example.com
- hombre_fatal 5y agoYou don't need to newline every flag of a trivial command.
- all2 5y agoI'm guessing the user's intent was to have the command formatted across multiple lines.
- z3c0 5y agoCode formatting is just blockquotes. So one empty space followed by indented text (2 or more spaces)
- lysium 5y agoLooks like SingleFile helps with sites where you have to be logged in, something that is not that easy with wget.
- _dain_ 5y agoWhat are you talking about? I have hundreds of pages saved with SingleFile and I can click links in all of them.
- reidjs 5y agoOh maybe it does work then. I assumed it didn’t follow links because they didn’t show it in the video.
- _dain_ 5y agoDo you mean converting links so that they point to your local copy of other pages from the same site? Yeah it doesn't do that; it isn't a tool meant for archiving whole websites. It's just for archiving a single page, with all the content baked into it. Like a bookmark but doesn't linkrot.
- deleted 5y ago[deleted]
- berkes 5y agoAre you suggesting to mirror e.g. the entire Wikipedia through wget? That is not only suboptimal, it is stressing on the server. At least you added a --wait=2, but on any large site/hoster/CDN, this might still get your IP banned or throttled. And on e.g. the English wikipedia this will then take 149 days. Which means that by the time you hit the last page, the first ones (and their links) are out of date.
- falcolas 5y agoIf you add '--no-parent' (doesn't request anything that's not a page dependency above the requested URI) and a '--level=5' (only follows link 5 deep), you won't get all of a site. It makes it more realistic for getting wikipedia articles.