Looking for a way to save a whole site in its entirety and keeping its functions on android
-
[email protected]replied to [email protected] last edited by
Would you be ok with reading wikipedia?
There's this app that is for viewing wikipedia pages both online and offline: https://f-droid.org/packages/org.nsh07.wikireader/
-
[email protected]replied to [email protected] last edited by
This will help but the wiki I'm thinking of using is for a video game and for a tabletop
-
[email protected]replied to [email protected] last edited by
You can download the website's static files then (html, css, images, etc.) but features such as search won't function if it works by querying some database.
Iirc most browsers have a way to make website's available offline. I know chromium has it, but firefox does not. You'd probably need an extension for that.
-
[email protected]replied to [email protected] last edited by
I used wget to download static sites, or at least ones with simpler JavaScript, but it won't download any required files that are only linked in JS code, so it probably won't work for many sites.
You also need to be careful when spanning hosts so that you don't accidentally (attempt to) download the entire internet. And rate-limiting, useragent, robots file, filename limitations (so that it doesn't save files with filename characters that have other uses in URLs like # and ?), filename extensions (to serve them back with correct mimetype), getting filenames from server rather than URL when appropriate, converting links (works in HTML files only), and I am probably forgetting something else.
Oh, and it's a single process doing one request at a time, so even just a page with too many images will take ages. E.g.: http://cyber.dabamos.de/88x31/ (currently offline).
You can then easily serve them using NGINX, or just browse as files, though the latter may not work well on something like a phone. Oh, one more thing, image.jpg and Image.jpg would conflict on Android, and some websites have differences like that. It can only be stored within Termux (and served using NGINX in Termux).
-
[email protected]replied to [email protected] last edited by
-
[email protected]replied to [email protected] last edited by
"functions on android"
-
[email protected]replied to [email protected] last edited by
a chrome extension called WebScrapBook does the trick. Install it on a chromium based browser, such as kiwi or one that isn't getting discontinued
-
[email protected]replied to [email protected] last edited by
you can't. How do you imagine saving the sql databases, that you need for logging in and viewing user profiles and so on? at most, you can save a snapshot
-
[email protected]replied to [email protected] last edited by
Was there, done that. Looking for a flat and they always take it down the day you visit it.
On desktop: right click, pick option to save page, in the dialogue/file picker choose "whole page". Move it to Android device. There, you need a file manager app. You can't load it in the browser really, but Android has a "HTML preview" that uses the default browser, no clue why.
-
[email protected]replied to [email protected] last edited by
There's "Save as web archive", might fit your need. Careful, has Admob and Firebase Analytics trackers.
-
[email protected]replied to [email protected] last edited by
firefox has that too, they don't need to use chrome for that
-
[email protected]replied to [email protected] last edited by
Oh nice! I only knew about the chrome one. I might just switch as my current browser is not getting maintained for long anymore