Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Convert Mozilla Archive Format files to compressed base64-encoded HTML framesets

License

NotificationsYou must be signed in to change notification settings

ArneBachmann/MAFF2HTML

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

This tool converts your MAFF archived websites to single base64-encoded HTML files, optionally compressed via LZMA or BZip2.

The HTML frames referenced by the MAFF's frameset and all their nested referenced resources like images, stylesheets, fonts and scripts are inlined using base64-encodeddata: URLs (!).

This unique approach lets you keep all information of the MAFF in asingle HTML file.I don't think this solution exists anywhere else.

Sadly, however, even modern (year 2020) browsers struggle loading larger HTML documents with frames and inline data, and may fail to render base64-encoded contents efficiently, or crash without of memory errors.

Anyway I think this is a uniquely useful long-term solution for keeping your data without relying on browser-plugins to display your archived web pages.

Enjoy!

Usage

The basic usage is:

python[3] maff2html.py [--compress [--lzma]] [--keep-timestamp]

This will find all*.maff files in the current and all sub-folders and convert them into*.html.xz,*.html.bz2 or*.maff.html files, leaving the original*.maff file untouched.

Command-line optionsCompressionFile extension
nonenone.maff.html
--compressBZIP2.html.bz2
--compress --lzmaLZMA.html.xz

Contributors

  • Pepe Pardo (pppardo): in-memory unzipping, encoding fix

TODO

  • addpyproject.toml with console_script and dependencies
  • optional libraries: filetype, python-magic
  • usepathlib instead ofos.path

About

Convert Mozilla Archive Format files to compressed base64-encoded HTML framesets

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp