When trying to clone or archive a modern web design, standard scraping tools often fail to capture images. This happens because modern frontend frameworks use lazy-loading techniques, storing image URLs in custom attributes like data-background or data-src instead of standard <img src="..."> tags.
Tools like wget only look for standard src attributes and will skip these lazy-loaded assets entirely.
This guide outlines a workaround using mitmproxy to intercept the HTML response and inject hidden image tags, tricking wget into downloading all lazy-loaded assets so the site works perfectly offline.