1. 程式人生 > >python 把已爬取圖片鏈接 用urllib下載到本地

python 把已爬取圖片鏈接 用urllib下載到本地

技術分享 pytho mage com python3 tle bubuko img title

技術分享圖片

image:圖片鏈接

d:\\pic\%s.jpg:保存到本地的圖片路徑

title:自己定義的一個圖片名稱

python3用的是urllib.request.urlretrieve

python2用的是urllib.urlretrieve

python 把已爬取圖片鏈接 用urllib下載到本地