……

wxj的图片

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)

posted on 2020-10-29 18:38  Exlo  阅读(88)  评论(0编辑  收藏  举报

导航