Yaroslav Boichuk
Yaroslav Boichuk

Reputation: 1775

'wget' full web site based on frames

I have a little problem. I want recursively download that web page, but it based on "frames". Standard methods can't help me. I try different variants, but nothing. Maximum I can download one recursion, I found example there. How can I grab that web site fully, and than use it offline? Thx.

Upvotes: 5

Views: 8102

Answers (3)

YudhiWidyatama
YudhiWidyatama

Reputation: 1704

Try this :

 wget -E -H -k -K -p "http://yoursite.com/path"

Works for my use case (to download referenced frame HTMLs)

Upvotes: 1

Joel
Joel

Reputation: 30166

If you want a local copy of a site use --mirror:

wget --mirror http://www.example.com/

Some of the other options are useful too:

--convert-links converts absolute links to local links, so you can browse the site locally.

--HTML-extension adds .html to any resources that do not have a suffix (this is useful for browsing otherwise very dynamic sites locally via apache)

-p gets images, css and all resources required for the page to load

So:

wget --mirror --convert-links --HTML-extension -p http://www.example.com/

Finally, if it's not your site, then be polite and add a -w (wait between requests, in seconds)

Upvotes: 2

user470489
user470489

Reputation:

What are you using for the commands? Are you on MSWindows? E.g. "wget --mirror –w 2 –p --HTML-extension –-convert-links –P c:\wget_files\example1 http://base.safework.ru/iloenc"

Upvotes: 0

Related Questions