fetch huaban small images from u
作者:
狼无雨雪 | 来源:发表于
2019-07-05 12:54 被阅读0次import urllib.request
import os
path = "huaban_download"
if not os.path.exists(path):
os.makedirs(path)
with open("huaban_img_asserts_all.txt",'r',encoding="utf8") as read_file:
for index, line in enumerate(read_file.readlines()):
url = "http:" + line.strip()
print(index, url)
file_name = path + "/" +str(url.split("/")[-1]) + ".png"
urllib.request.urlretrieve(url, filename = file_name)
本文标题:fetch huaban small images from u
本文链接:https://www.haomeiwen.com/subject/qazrhctx.html
网友评论