python 抓取unsplash图片

import urllib
image_url = [
‘https://images.unsplash.com/photo-1565099824688-e93eb20fe622?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjExMDk0fQ&auto=format&fit=crop&w=751&q=80’,
‘https://images.unsplash.com/photo-1565014312097-24e9c95b0bcc?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=334&q=80’,
‘https://images.unsplash.com/photo-1565098235617-1d429c400daa?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=334&q=80’
]
i=1
for item in image_url:
urllib.urlretrieve(item,”%s.jpg”%(i))
i+=1