Comments (19)
So, the convenient workaround is:
-
execute this command from within the directory holding the html file of interest:
python -m SimpleHTTPServer 8000
-
Open your web browser and go to
http://localhost:8000/
+ name of your html file -
Use SingleFile
from singlefile.
So, the convenient workaround is:
* execute this command from within the directory holding the html file of interest: ``` python -m SimpleHTTPServer 8000 ``` * Open your web browser and go to `http://localhost:8000/` + name of your html file * Use SingleFile
The suggested workaround is considerably useful.
SimpleHTTPServer has been deprecated since Python 3. Consider using this command instead:
python3 -m http.server 8000
from singlefile.
Single File will save a http://localhost url, so if you set up IIS (http://www.howtogeek.com/112455/how-to-install-iis-8-on-windows-8/) and put your html page + folder in C:\inetpub\wwwroot, you can save the webpage with Single File (enter http://localhost/your-html-file.html in Chrome)
from singlefile.
Yes. After devouring all memory and half of swap space and hanging the system for 15 minutes it finally outputs something similar to the source with some assets lost and bigger in size than the source by a third.
Works like a charm? Works like shit, I would say.
Come on, if you really want help be constructive and actually provide information. Just being rude won't solve your issue.
from singlefile.
I would find this useful also, I have a bunch of pages I saved in the conventional way, some of which are no longer available, and want to use this extension to archive them in a neater fashion.
from singlefile.
Thumbs up for this feature request!
I have plenty of old saved pages in MHT or HTML+Folder form and it will very nice to convert it into all-in-one HTML files.
from singlefile.
Actually it's not a security reason. It's because SingleFile relies on XMLHttpRequest API to get embedded external resources (stylesheets, images...) data. There is an issue with this API on Chrome: it does not work on file:// URLs so SingleFile cannot process the page.
from singlefile.
It's clear.
Thanks for fast reply!
from singlefile.
So it cannot, and will not be done? Or will it work when the Chrome API works?
from singlefile.
It will work when the Chrome API will work but I'm not sure this Chrome bug will be fixed soon (the bug was opened 2 years ago)... SingleFile will also need a new permission for file:// URL access which will have to be approved by Google.
from singlefile.
Thanks @marsupilam1, that's the exact workaround I have now. It's a pain to get (and keep) IIS working though. I've been tempted to install Apache instead.
from singlefile.
@marsupilam1 @kenahoo You're right, that's the only workaround I know to solve this issue. I should have documented it somewhere...
from singlefile.
@kenahoo I have not had any problems with keeping IIS working, but I found that in some programs - like evernote - I could not save to wwwroot because of lack of administrative rights. A solution to this problem can be found here: http://www.alltechtalk.net/forum/thread-bypass-windows-8-uac-while-keeping-metro . Finally I can clip with Evernote, export compilations of snippets to wwwroot, and save it as a single html file with Chrome :)
from singlefile.
@kenahoo So what happened if you set allowing to access file directory at chrome://extensions page?
from singlefile.
@Antiwhore You need to rewrite absolute URLs found in the page into relative URLs.
from singlefile.
I just tried it out. Worked like a charm.
Steps:
- Website
foo.html
with images and all relevant files in a folder/tmp/test
(e.g. this page after Ctrl+S) -
cd /tmp/test python3 -m http.server 8000
- In Firefox browse
http://localhost:8000/foo.html
and save page with SingleFile
Firefox version 109.0.1
SingleFile version 1.21.39
from singlefile.
@Antiwhore I apologize for trying to help you and for providing you with a tool that does not suit you.
from singlefile.
I don't think you can host WebArchive files on Mac with the HTTP server (they just download). What I've done is use https://github.com/gonejack/webarchive-to-html to convert them to HTML, then locally host the HTML using http-server
, and then use SingleFile to download that. This works.
from singlefile.
Hello.
Is there some way to do the same but with mht files in Edge?
PS. I have plenty mht files and only Edge can open them so I want to save them with SingleFile.
from singlefile.
Related Issues (20)
- Keyboard-only opening of the toolbar menu HOT 6
- Custom keyboard Accelerator abbreviations for all menu items HOT 5
- Release new version HOT 3
- Saving as zip results in broken document (numbers [0-255] separated by commas) HOT 1
- Save to include videos/gifs HOT 3
- Option not to group "save page with profile" into a submenu, but add profiles directly
- Git repo is 338M but code base is 3.8M HOT 1
- File name issue (V 1.22.46 for Google Chrome ) HOT 1
- Manifest v3 support HOT 1
- Targeted optimization of web images to reduce the overall size of the archive HOT 1
- white page HOT 1
- Attempting to save a Reddit tab causes the tab to freeze and crash. HOT 3
- InternalError:allocation size overflow
- Export button on Firefox Android not working HOT 1
- Add option for space saving without deleting newlines HOT 3
- Hello, may I ask if my project can be added to the 'Projects using/compatible with SingleFile'? HOT 6
- Add option to remove menu entry in tab bar HOT 1
- SingleFile and SingleFileZ both have problem when saving a webpage tool based on Bootstrap. HOT 4
- Add an option to make the infobar opened by default when viewing an archive HOT 1
- Images (full-sized) not fully captured on eBay listing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from singlefile.