<p>Looking for a <code>Linux application</code> <em>(or Firefox extension)</em> that will allow me to scrape an HTML mockup and keep the page's integrity.</p>

<p>Firefox does an almost perfect job but doesn't grab images referenced in the CSS.</p>

<p>The Scrapbook extension for Firefox gets everything, but flattens the directory structure. </p>

<p>I wouldn't terribly mind if all folders became children of the <code>index</code> page.</p>

[{'answer_id': 79623, 'author': 'etchasketch', 'author_id': 14640, 'author_profile': 'https://Stackoverflow.com/users/14640', 'pm_score': 2, 'selected': False, 'text': '<p>Have you tried <a href="http://linuxreviews.org/quicktips/wget/" rel="nofollow noreferrer">wget?</a></p>\n'}, {'answer_id': 79642, 'author': 'X-Cubed', 'author_id': 10808, 'author_profile': 'https://Stackoverflow.com/users/10808', 'pm_score': 0, 'selected': False, 'text': '<p><a href="http://www.tenmax.com/teleport/pro/home.htm" rel="nofollow noreferrer">Teleport Pro</a> is great for this sort of thing. You can point it at complete websites and it will download a copy locally maintaining directory structure, and replacing absolute links with relative ones as necessary. You can also specify whether you want content from other third-party websites linked to from the original site.</p>\n'}, {'answer_id': 79645, 'author': 'Gilean', 'author_id': 6305, 'author_profile': 'https://Stackoverflow.com/users/6305', 'pm_score': 4, 'selected': True, 'text': '<p>See <a href="http://www.devarticles.com/c/a/Web-Services/Website-Mirroring-With-wget/1/" rel="noreferrer">Website Mirroring With wget</a></p>\n\n<pre><code>wget --mirror –w 2 –p --HTML-extension –-convert-links http://www.yourdomain.com\n</code></pre>\n'}, {'answer_id': 79657, 'author': 'Thomas', 'author_id': 14637, 'author_profile': 'https://Stackoverflow.com/users/14637', 'pm_score': 1, 'selected': False, 'text': '<p><code>wget -r</code> does what you want, and if not, there are plenty of flags to configure it. See <code>man wget</code>.</p>\n\n<p>Another option is <code>curl</code>, which is even more powerful. See <a href="http://curl.haxx.se/" rel="nofollow noreferrer">http://curl.haxx.se/</a>.</p>\n'}]
['https://Stackoverflow.com/questions/79612', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/13320/']