Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-26-2006, 05:07 AM   #1
Registered: May 2006
Posts: 55

Rep: Reputation: 15
How to download web pages from a website using wget command

How to download web pages from a website using wget command

I want to store on my system some webpages of, (The home page, jpeg files on the homepage and hyperlinks from homepage at a depth of 5 levels and view them offline.

I tried as following

[amit@localhost temp]$ wget -l
wget: reclevel: Invalid specification `'.
wget: missing URL
Usage: wget [OPTION]... [URL]...

Try `wget --help' for more options.
[amit@localhost temp]$

but it is not working.
Old 05-26-2006, 05:27 AM   #2
Senior Member
Registered: Oct 2003
Posts: 2,989

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
Here's two excellent articles discussing wget usage:
Old 05-26-2006, 06:25 PM   #3
Registered: Apr 2003
Location: Dallas
Distribution: Vector Linux, Suse 10.1
Posts: 186

Rep: Reputation: 30
You might want to look at FlashGot. It is a plug-in for Firefox. It is designed for downloading webpages, and saving them in a directory tree.

Good luck.

Old 07-05-2006, 04:37 AM   #4
Senior Member
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,658

Rep: Reputation: 255Reputation: 255Reputation: 255
Originally Posted by kilgoretrout
i read there is also :
wget -m http://klsfjlmsfd.htm

dont know
Old 07-05-2006, 05:58 AM   #5
Senior Member
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
wget -r -l 5 ...
read the wget man pages:
-r is for recursive downloading
-l <some_level> is to limit the recursion to let's say 5 levels.

You may need other options too, like --no-parent.
Old 07-05-2006, 09:50 AM   #6
Registered: Oct 2005
Location: Annapolis
Distribution: Ubuntu
Posts: 278

Rep: Reputation: 41

Originally Posted by kilgoretrout
Great articles, thanks for sharing that.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
wget through an authenticated website davee Linux - Networking 2 02-11-2009 04:57 AM
Command to download entire website? bannerman Linux - Networking 3 04-03-2006 07:15 AM
Trouble formulating a correct wget call to download a college website, notes and all. chuckleberry Linux - Software 7 12-28-2005 05:32 PM
retrieving wiki pages with wget pete-theobald Programming 4 07-20-2005 09:28 AM
ADSL Router Web configuration pages appears instead of Personal Web Server Pages procyon Linux - Networking 4 12-20-2004 05:44 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:46 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration