I need to grab one webpage (single page, not all site) with all his assets(images/css) in command line.
I really like how google chrome do it - if I save webpage I get single html file and single directory with all assets. Moreover all paths to images are changed to local ones, and all links are absolute (if it was "/pricing", it becomes "http://example.com/pricing").
I know I can do it with wget
, but I don't like the result - many directories (if there was images from different domains), and html file is somewhere in directory (with domain name)..
I really like the result after saving page with google chrome and I need to know if you know some command line crawlers which makes similar result.
Or you know how to configure wget
to do it like I need?
wget
's--convert-links
options, which converts "the links in the document to make them suitable for local viewing".