首页 > 其他 > 详细

wxj的图片

时间:2020-10-29 19:58:26      阅读:34      评论:0      收藏:0      [点我收藏+]
import requests

headers = {
    ‘User-Agent‘: ‘Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:82.0) Gecko/20100101 Firefox/82.0‘,
}
url_list = [
  "http://jp-mplat-oss.adnonstop.com/material_platform/20201026/16/15000250420201026160615531.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20201026/16/15000250420201026160655160.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20200930/14/15004810820200930141306182.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20200930/14/15004810820200930141238670.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20200918/15/15004810820200918152519344.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20200918/15/15004810820200918152559150.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20200911/14/16341928420200911140215317.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20200911/14/16341928420200911140158980.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20200821/19/15004810820200821192312923.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20200821/19/15004810820200821192256100.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20200817/17/16341928420200817175415476.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20200817/17/16341928420200817175355890.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20200715/15/15000250420200715155921221.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20200715/16/15000250420200715160214492.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20200618/14/15000250420200618145650750.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20200618/14/15000250420200618145804731.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20200608/14/15000250420200608142728864.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20200608/14/15000250420200608143718423.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20200522/11/16341928420200522115328818.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20200522/11/16341928420200522115141816.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20200725/23/15000250420200725231806676.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20200725/23/15000250420200725232002988.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20200305/15/15935836620200305155711157.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20200305/15/15935836620200305155750792.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20191216/18/16237103720191216180156196.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20191218/18/15935836620191218180430201.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20200318/14/15935836620200318143449464.png",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20200318/14/15935836620200318143341330.png",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20200409/17/15935836620200409174857444.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20200409/17/15935836620200409174739586.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20200513/12/15004810820200513124045576.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20200513/12/15004810820200513124034323.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20191121/15/16237103720191121155629202.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20191127/19/16237103720191127192856375.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20200115/10/16237103720200115104156775.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20200115/10/16237103720200115104122373.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20191031/14/16237103720191031142907734.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20191127/17/15935836620191127174906481.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20191128/19/16237103720191128193250719.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20191128/19/16237103720191128193241807.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20191121/15/16237103720191121155648162.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20191127/19/16237103720191127193050183.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20190522/14/16237103720190522145445669.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20191127/17/15935836620191127171229835.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20190911/10/16237103720190911101457349.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20191127/17/15935836620191127174821803.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20190726/19/16237103720190726190735721.JPG",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20191127/17/15935836620191127174607475.png",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20190320/10/15784866620190320100902945.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20191127/17/15935836620191127171109294.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20190111/14/15784866620190111144454151.jpg",
  "http://jp-mplat-oss.adnonstop.com/material_platform/20191127/17/15935836620191127170253319.jpg"
]
for url in url_list:
    response = requests.get(url=url, headers=headers)
    with open(‘{}.jpg‘.format(url.split(‘/‘)[-1]), ‘wb‘) as f:
        f.write(response.content)

wxj的图片

原文:https://www.cnblogs.com/exlo/p/13898545.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!