Empiromancer
Empiromancer

Reputation: 3854

Using HTTrack to mirror a single page

I've been attempting to use HTTrack to mirror a single page (downloading html + prerequisites: style sheets, images, etc), similar to the question [mirror single page with httrack][1]. However, the accepted answer there doesn't work for me, as I'm using Windows (where wget "exists" is but actually a wrapper for Invoke-WebRequest and doesn't function at all the same way).

HTTrack really wants to either (a) download the entire website I point it at, or (b) only download the page I point it to, leaving all images still living on the web. Is there a way to make HTTrack download only enough to view a single page properly offline - the equivalent of wget -p?

Upvotes: 2

Views: 3019

Answers (3)

Soul
Soul

Reputation: 23

This answer worked for me.

Downloaded a single page html with all prerequisites. Just try to give the exact link for the page to be downloaded and as given in the answer above, Use the GUI, on "-Mirroring Mode-" -> "Set Options" -> "Limits" -> "Maximum External Depth = 0".

Upvotes: 0

Ari Fordsham
Ari Fordsham

Reputation: 2515

Saving the page with your browser should download the page and all its prerequisites.

Upvotes: -1

user41814
user41814

Reputation: 19

This is an old post so you might have figured it out by now. I just came across your post looking for another answer about using Python and HTTrack. I was having the same issue you were having and I passed the argument -r2 and it downloaded the images.

My arguments basically look like this: cmd = [httrack, myURL,'-%v','-r2','-F',"Mozilla/5.0 (Windows NT 6.1; Win64; x64)",'-O',saveLocation]

Upvotes: 1

Related Questions