LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
LinkBack Search this Thread
Old 11-29-2011, 06:05 PM   #1
errigour
Member
 
Registered: May 2009
Posts: 227

Rep: Reputation: 4
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, 06:57 PM   #2
aazkan
Member
 
Registered: Jan 2008
Posts: 72

Rep: Reputation: 5
wget -r -l1 --no-parent -A.gif http://some.website.com/somepage.html

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
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 06:02 AM
[SOLVED] Using wget to download images and updating to capture new ones from link Using Debian Linux - Newbie 2 02-19-2011 08:58 PM
wget and links2 can't access web page. fakie_flip Programming 6 01-11-2008 04:34 PM
Wget - download images from any location andreic Linux - Software 3 04-18-2006 04:22 AM
wget will not download full webpage with images hedpe Linux - Software 2 02-15-2006 11:46 PM


All times are GMT -5. The time now is 09:16 AM.

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