用爬虫抓取图片的保存

 

保存图片

request=urllib2.Request(randNumberUrl,data,headers)
picture=opener.open(request).read()
local=open('D:/tmp.png','wb')
local.write(picture)
local.close()

 

相关文章:

  • 2022-12-23
  • 2022-02-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-07
  • 2021-07-02
猜你喜欢
  • 2021-08-05
  • 2022-12-23
  • 2021-11-23
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案