Suppose you have a file photos.csv like this:
- “Christina1.jpg”,“http://ultraimg.com/images/Christina-Hendricks-Images2.jpg”
- “Christina2.jpg”,“http://www.bolsamania.com/seriesadictos/wp-content/uploads/2015/07/Christina-Hendricks.jpg”
- “Christina3.jpg”,“https://s-media-cache-ak0.pinimg.com/736x/10/8f/b3/108fb3f483d2b0ee5cd50db4ffc751ab.jpg”
- “Christina4.jpg”,“http://www.speakerscorner.me/wp-content/uploads/2016/04/christina5.jpg”
- “Christina5.jpg”,“http://i.dailymail.co.uk/i/pix/2013/04/05/article-2304737-191E7594000005DC-598_634x782.jpg”
You can download the images with this code (I tried succesfully):
- import csv
- import requests
- with open(‘fotos.csv’) as csvfile:
- csvrows = csv.reader(csvfile, delimiter=‘,’, ...