Welcome to the most active Linux Forum on the web.
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 11-29-2011, 07:05 PM   #1
Registered: May 2009
Posts: 282

Rep: Reputation: 5
How do I use wget to download only images from a single web page?

I want to download all the background images that
a web page has readily available for its guests. I was hoping someone could show me how to download only images from that web page.
preferable only .gif .ico .jpeg .jpg .png
I don't know if there are anymore types of images.
Old 11-29-2011, 07:57 PM   #2
Registered: Jan 2008
Posts: 72

Rep: Reputation: 5
wget -r -l1 --no-parent -A.gif

repalce -A.gif with other type of file image extension.
Oth, if the http server does not allow direct download (you get a 403), you probably wants to mask/change wget user-agent so it looks like an IE or FF user-agent


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
[SOLVED] wget -r opt destroys web page layout? riller Linux - Software 2 11-15-2011 07:02 AM
[SOLVED] Using wget to download images and updating to capture new ones from link Using Debian Linux - Newbie 2 02-19-2011 09:58 PM
wget and links2 can't access web page. fakie_flip Programming 6 01-11-2008 05:34 PM
Wget - download images from any location andreic Linux - Software 3 04-18-2006 05:22 AM
wget will not download full webpage with images hedpe Linux - Software 2 02-16-2006 12:46 AM

All times are GMT -5. The time now is 12:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration