Saturday, November 6, 2010

WGET magic

http://mrhassell.wordpress.com/

wget –referer=”http://www.google.com” –user-agent=”Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6″ –header=”Accept:text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5″ –header=”Accept-Language: en-us,en;q=0.5″ –header=”Accept-Encoding: gzip,deflate” –header=”Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7″ –header=”Keep-Alive: 300″ -dnv -r –html-extension –convert-links http://www.somedomain.com

obviously you should change the http://www.somedomain.com to the relative site that you wish to download. As I’m lead to believe this is basically how Mark Elliot “Zuck” Zuckerberg downloaded the contents of the pictures from Harvard University and started “thefacebook.com” – at least according to the Hollywood side of things, in the move “The Social Network” – this would be the WGET magic mentioned. Enjoy!