已知文件url格式
https://xxxxx/1.png
https://xxxxx/2.png
…
通过python使用wget实现批量下载文件:
1.安装wget
pip install wget
2.批量下载
import wget
number=1
while number<=40:
url ='https://xxxxx/'+str(number)+'.png' # 文件链接
path = 'D:\批量下载' # 保存地址
wget.download(url, out=path)
number+=1