bugGNU Wget - Bugs: bug #52705, HTML assets embedding with...


bug #52705: HTML assets embedding with --page-requisites

Submitted by:  None
Submitted on:  Wed 20 Dec 2017 10:16:35 AM UTC  
Category: Feature RequestSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Originator Name: Artur ShayhutvinovOriginator Email: -unavailable-
Open/Closed: OpenRelease: None
Operating System: NoneReproducibility: None
Fixed Release: NonePlanned Release: None
Regression: NoneWork Required: None
Patch Included: None

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Thu 21 Dec 2017 12:59:46 PM UTC, comment #2:

While MHTML was a convenient way to create snapshots of pages, sadly it was never properly standardized and most popular browsers no longer support it.

WARC has been almost standardized and is considered the de-facto way of archiving a web page / web site.

Wget supports saving into the WARC format. So you may want to look into using that.

Else, implementing MHTML should not be too hard. Just some postprocessing code in all the places where WARC data is stored. However, none of the developers currently have time to work on a new feature. So, if you could write a patch, we might review and accept it.

Implementing this as a plugin for Wget would however be easier and cleaner.

Darshit Shah <darnir>
Project Administrator
Thu 21 Dec 2017 12:15:39 PM UTC, comment #1:

I believe that wget can save a page and all its assets into a directory structure, which can be archived in a single file in many ways.

Are there good, compatible ways to save all page assets embedded into one HTML file?

Dale Worley <worley>
Wed 20 Dec 2017 10:16:35 AM UTC, original submission:

It would be great to have an option that enforces wget to save all page assets (images, styles, scripts) embedded in one html file.

Old proprietary MHTML format was very useful to save/share copies of articles from internet, but now it isn't supported by most browsers anymore. I was replacing this need with printing pages to PDF documents but it's not perfect way because some sites looks broken in print mode and others may loose important parts of content. Since HTML standard supports inline images the problem can be solved just through pretty simple postprocessing.

Sorry for bad English. Thanks.



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by darnir (Posted a comment)
  • -unavailable- added by worley (Posted a comment)
  • -unavailable- added by None (Submitted the item)

    Please enter the title of George Orwell's famous dystopian book (it's a date):



    No Changes Have Been Made to This Item

    Back to the top

    Powered by Savane 3.1-cleanup1