SingleFileZ
SingleFileZ copied to clipboard
Friendly fork that supports saving webpages as unzipped directories
Hello,
I developed a fork of SingleFileZ in https://github.com/pellaeon/SingleFileZ , my fork adds a CLI script cli/multifile
to save webpages as unzipped directories, same as the request in #102 .
As people have mentioned in #102 , the browser's "Save page as" option doesn't always produce the best results, but SingleFileZ does. Also, as far as I know, it is not possible to use the DevTools protocol to operate the "Save page as" feature, so it is not possible for automatic archiving tools like Archivebox to run "Save page as". SingleFileZ solves the problem.
I understand that providing no zip option might be out of scope for this project, and I respect your decision. However, my multifile
tool only slightly differs from the original code, and there are some people using SingleFileZ who needs the feature. So maybe it is still worth incorporating my changes in your repository, please reconsider. I only added 3 source files, without changing existing ones, so it does not affect the existing feature at all or your development.
If you think it could be incorporated, I will tidy up the code and send in a pull request. If not, I'll just keep maintaining my fork.
For a bit more background, I intend to use multifile
to add a new extractor in Archivebox. Archivebox already uses the SingleFile CLI tool.
Thank you for this excellent project.
Thanks a lot, I'll take a look at your implementation to see how I could integrate it into the existing code.