linux 下载 图片
linux curl 下载图片
l=[] with open('ee.html','r',encoding='utf-8') as fr: for i in fr: ii=i.split('"') for iii in ii: if 'jpg' in iii or 'png' in iii: #s='curl {}'.format(iii) s=' curl -s -O {}'.format(iii) if s not in l: l.append(s) print(s)
curl -s -O https://images.shobserver.com/news/690_390/2017/11/5/a1675f4b-64da-4c7c-9432-218f89512aa4.jpg
curl -s -O https://images.shobserver.com/news/news/2017/11/5/ced86155-0505-4bd3-a3fe-03ecf7716f87.jpg
curl -s -O https://images.shobserver.com/news/news/2017/11/5/b5a6be72-1ac0-43b1-8e14-7eec15e7675e.png
curl -s -O https://images.shobserver.com/news/news/2017/11/5/5b57ada3-f0c6-4910-9e9d-277000264c4a.jpg