Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

script to download images via URL list

Posted on 2009-04-17
2
Medium Priority
?
2,165 Views
Last Modified: 2012-05-06
Can someone please make me a script I can easliy run on a linux OS (or even windows it doesn't matter).. Im not a programmer but I can run a shell script on unix or a batch file in windows

I have a list of URL's in a text file -

example
http://www.website.com/images/50/705077001430.gif
http://www.website.com/images/5000/705077001431.gif

The list is rather large (450 urls/images) and downloading by hand would take awhile

Can someone throw together a script that will read the list of URL's and download each image and place them all in the same folder.

example of the resulting output
images/50/705077001430.gif
images/5000/705077001431.gif

I'd need to keep the folder structer and image name the same as named in the URL - BUT IF this complicates the script to much I really only have to have the image name remain the same, I can place them in folders after they are downloaded.

Many thanks


0
Comment
Question by:gevansmdes
2 Comments
 
LVL 48

Accepted Solution

by:
Tintin earned 2000 total points
ID: 24172245
wget -v --input-file=urls.txt
0
 

Author Closing Comment

by:gevansmdes
ID: 31571667
ah thank you
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If like me you are one who spends a lot of time working and scripting with cmd.exe, sometimes it is handy to be able to quickly view a calendar for a given month and year. This script will quickly do just that!  Save the code posted below to a .bat …
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Suggested Courses

572 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question