Published in: Bash
URL: http://lifehacker.com/software/top/geek-to-live--mastering-wget-161202.php
Download and archive an entire Web site, starting with the given page and recursing down 1 level. Adjust how many levels deep by changing the numeric argument given after -l
Won't follow @import links in CSS.
#Get page.com and each page it links to as well as linked assets like images and CSS. Change hyperlinks to point to the locally downloaded pages. wget -pkr -l 1 http://site #Same as above but also follow links to other domains. wget -Hpkr -l 1 http://site #Same as the first example, but use a cookie wget -pkr -l 1 --no-cookies --header "Cookie: JSESSIONID=12345" https://securesite
You need to login to post a comment.
