I am trying to emulate right-clicking and "Saving As, complete" in Chrome or Firefox. I tried this:
wget -E -H -k -K -p http://gizmodo.com
But that created a several folders, one for each domain that hosts resources. I also tried
wget -r -N -l inf --no-remove-listing -x http://gizmodo.com
Both from here, if anyone is interested. I also tried here, here, and here but none of those did what I wanted.
But that did not download all the dependencies. What I really want is what Chrome and Firefox do, which creates one index.html file, with all the dependency file paths modified to point to all the dependencies that sit in an 'assests' folder next to it.
I've also tried the wget manual, and can't find anything more than what it is already doing. Is this even possible?