download list of images from urls -


i need find (preferably) or build app lot of images. each image has distinct url. there many thousands, doing manually huge effort. list in csv file. (it list of products, each identifying info (name, brand, barcode, etc) , link product image. i'd loop through list, , download each image file. ideally i'd rename each 1 - barcode.jpg. i've looked @ number of image scrapers, haven't found 1 works quite way. appreciative of leads right tool, or ideas...

are on windows or mac/linux? in windows can use powershell script this, on mac/linux shell script 1-5 lines of code.

here's 1 way this:

# show what's inside file cat urlsofproducts.csv  http://bit.ly/noexist/obj101.jpg, screwdriver, blackndecker http://bit.ly/noexist/obj102.jpg, screwdriver, acme  # one-liner generate 1 download-command per item, not execute them perl -mfile::basename -f", " -anle "say qq(wget -q \$f[0] -o '\$f[1]--\$f[2]--).  basename(\$f[0]) .q(')" urlsofproducts.csv     # output : wget http://bit.ly/noexist/obj101.jpg -o ' screwdriver-- blackndecker--obj101.jpg' wget http://bit.ly/noexist/obj101.jpg -o ' screwdriver-- acme--obj101.jpg' 

now back-substitute wget commands shell.


Popular posts from this blog

html/hta mutiple file in audio player -

debugging - Reference - What does this error mean in PHP? -