SRL Archive - Computer Help and Tutorials

How to download an entire website using the power of WGET


Harry

2009-07-12 10:58:15

Wget is win, we all know that. One of the most simple looking, but actually most advanced terminal client.

So, you want to download an entire site's content, eh? Using wget it is easy!

Now you must install wget (it is installed on 99% of Linuxes by default)

Now you have `wget http://some.cool.web.site/

But oh noes, they have a robots.txt file to disallow you to index some parts of their website. No problem, ignore that stupid text file. [Note: some sites have this file to prevent abuse, or waste of their bandwidth; use it wisely]
`wget -e robots=off http://some.cool.web.site/

You trying to ignore the directories above your current one? Append -np :)
`wget -np -e robots=off http://some.cool.web.site/dicrecory/I/want/

Your downloads always timing out, and leaving incomplete files? Append -c.
`wget -np -c -e robots=off http://some.cool.web.site/file.that.likes.to.timeout.sh

You dislike how wget dumps all the files into one folder? Want them in recursive folders, such as how the server has it? -r is your friend.
`wget -r -np -c -e robots=off http://some.cool.web.site/oh/noes/so/many/folders/on/this/website/

Tired of websites blocking the wget useragent? (websites usually do this to prevent abuse and kiddies from spidering their site with wget that abuses their bandwidth) -U is fun to mess around with.
`wget -r -np -c -U "Mozilla/5.0 (X11; U; Linux i686; nl; rv:1.7.3) Gecko/20040916" -e robots=off http://some.cool.web.site/admin/who/dislikes/wget/
Be careful when using this command; spoofed Useragents can be dangerous if you use a blacklisted one, the admin may IP ban you. I recommend using the Useragent from your Firefox.

Final result!
`wget -r -np -c -U "Mozilla/5.0 (X11; U; Linux i686; nl; rv:1.7.3) Gecko/20040916" -e robots=off http://some.cool.web.site/


Some more features, not used enough by me to care.
`wget -help



Have fun leeching, and messing around with the power of wget.
~ Harry

R0b0t1

2009-07-12 11:07:18

So, theoretically, you could make your useragent the googlebot and download hidden sections?

Da 0wner

2009-07-12 11:10:57

Member and junior member scripts aren't indexed though o_O.

Harry

2009-07-12 11:11:31

From: R0b0t1
So, theoretically, you could make your useragent the googlebot and download hidden sections?

Sush, brah. Don't expose my secrets.

@Da Owner: How do you think Google ads work in the Members section?

Da 0wner

2009-07-12 11:15:10

Well, the pages or content in there isn't contained within the Google index as far as I've seen.

Point me to a Google search where it shows a member page.

Harry

2009-07-12 11:15:58

From: Da 0wner
Well, the pages or content in there isn't contained within the Google index as far as I've seen.

Point me to a Google search where it shows a member page.

They do not index it, as it is not allowed in the robots.txt, but they are still able to view it, but not cache it, so they can show ads.

Da 0wner

2009-07-12 11:19:31

Oh, well how can this be used to acquire member scripts? If you'd like you can MSN me it :p.

Harry

2009-07-12 11:33:19

The goal of this thread is not how to obtain higher level scripts :3
Also, vBulletin patched it I think.. it only allows Google's IP.

Da 0wner

2009-07-12 11:39:18

Well I don't want scripts. I don't even macro. I just want to know how for educational purpose :D.

Markus

2009-07-12 14:00:53

Na, Google can't view the members sections. Noone can :)
The robots.txt also can NOT disallow google to view members sections.♠

Da 0wner

2009-07-12 14:10:04

I told you Harry :).

Versace

2009-08-02 00:26:21

I'm going to be in the car for like 10+ hours, is it okay if I download this forum to read scripting tutorials? There are so many and I'm not sure which ones I will want to read… Just double checking that I'm not going to get IP banned or something. Can anyone shed light on this?

D1zl3

2009-08-02 02:22:44

From: Versace
I'm going to be in the car for like 10+ hours, is it okay if I download this forum to read scripting tutorials? There are so many and I'm not sure which ones I will want to read… Just double checking that I'm not going to get IP banned or something. Can anyone shed light on this?


i dont know if it will work, but going file -> work offline might do the trick