-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a no zip option #102
Comments
I may be wrong, but isn't this how the "Save page as..." feature works? |
It's strange, I remember I post the issue on "SingleFileZ" project 😂 I think "Save page as..." function actually don't work well. In screenshot, the layout is terrible and the picture don't show up correctly, because the image link is still URL link but not local file link. It's no doubt your software's function is better than the original one. "Save page as..." feature is terrible. |
I transferred the issue in the repository of SingleFileZ. I understand your concern. I need some time to think about it. The problem is that the very principle of the extension is to generate a simple zip file. The code was not particularly designed to do what you want either. |
Thank you! |
Having the option not to create a zip and instead create an output directory would be useful. For example, if I am downloading multiple pages (e.g., all pages of a small website), I sometimes need to rewrite URLs in the saved pages to point to the local saved copy (so that I can browse the website offline). To do this, I need to extract the zip and use Currently, I have to extract the zip, edit the files, and then zip up again. If I could save the output to a directory (instead of a zip), this would save me the extra step of unzipping. |
Ok, but this project is called SingleFileZ... |
Yes, indeed, but SingleFileZ does support crawling from the CLI, but does not support replacing the URLs in the downloaded files with relative URLs to allow for offline browsing. I would have agreed with you that the suggested feature shouldn't be implemented because it is out-of-scope if SingleFileZ really was just a tool for downloading a single webpage (but fortunately for me you have implemented additional functionality). |
@andrewdbate Note that the feature you want does exist in SingleFile (cf. |
@gildas-lormeau Thanks for the tip! |
@gildas-lormeau This and possibly #119 should be closed now that the option to save as a zip file has been implemented. |
@ImportTaste Actually, self-extracting files or zip files are all (and always have been) compatible with the ZIP specification. I think the OP wants all the resources to be downloaded separately. |
Is your feature request related to a problem? Please describe.
In some situations, I just want to keep the html file and resource files, and I don't want to compress them.
Describe the solution you'd like
Add an option in extension, which can save the url as a directory other than a zip file.
Because sometimes I need to organize files by my own, and unzip html file is an extra step which can be simplified by just adding an option.
The text was updated successfully, but these errors were encountered: