rahiel / archiveror

Archiveror will help you preserve the webpages you love. 💾
https://www.rahielkasim.com/archiveror/
GNU General Public License v3.0
422 stars 43 forks source link

Archive web apps? #9

Closed orschiro closed 8 years ago

orschiro commented 8 years ago

Dear @rahiel,

Just a quick question:

Is it possible to archive a web app locally (i.e. access offline) that has some interactive functionality?

Example: http://wikitable.eu5.org/

I would love to take this editor with me while being offline!

Thankfully,

~Robert

rahiel commented 8 years ago

Hey @orschiro, this is not possible with Archiveror now. Chromium doesn't save javascript in the local MHTML files, it also disallows loading of external content from file:// pages.

But it is still possible, I tried something with wget. First navigate your shell to where you want to save the files, then:

wget -p -H -k http://wikitable.eu5.org/
python3 -m http.server

And navigate in your browser to http://0.0.0.0:8000/wikitable.eu5.org/. I'm not sure if this will work for all websites, wget has many options and it might need some tweaking, you can see here the wget options we used. That python command starts a local webserver, because otherwise the browser would block external resources (here just scripts in another folder) if you'd open it directly with file://.

It may also be worth looking at http://www.httrack.com/. I found it after I realized that this local archiving via a browser extension is kind of crazy.

orschiro commented 8 years ago

Hi @rahiel,

Thanks for your wget workaround. This is working very well!

> It may also be worth looking at http://www.httrack.com/. I found it after I realized that this local archiving via a browser extension is kind of crazy.

Well, for me the charm of your extension lies in the fact that it does all the archiving automatically.

~Robert

Sent from Nylas N1, the extensible, open source mail client.

On Apr 9 2016, at 10:45 pm, Rahiel Kasim <notifications@github.com> wrote:

Hey @orschiro, this is not possible with Archiveror now. Chromium doesn't save javascript in the local MHTML files, it also disallows loading of external content from file:// pages.

But it is still possible, I tried something with wget. First navigate your shell to where you want to save the files, then:

wget -p -H -k http://wikitable.eu5.org/

python3 -m http.server

And navigate in your browser to http://0.0.0.0:8000/wikitable.eu5.org/. I'm not sure if this will work for all websites, wget has many options and it might need some tweaking, you can see here the wget options we used. That python command starts a local webserver, because otherwise the browser would block external resources (here just scripts in another folder) if you'd open it directly with file://.

It may also be worth looking at http://www.httrack.com/. I found it after I realized that this local archiving via a browser extension is kind of crazy.

—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub

rahiel commented 8 years ago

Well, for me the charm of your extension lies in the fact that it does all the archiving automatically.

:smile:

I thought about letting the extension communicate with an external program to manage the archives for more flexibility. But the simplest solution often wins.