Picture crawling

From Silly Peafowl, 1 Year ago, written in Python, viewed 201 times.
URL https://pastebin.vip/view/8395f9dd
  1. import requests
  2. url=""
  3. #把链接放在这个里面
  4. path="I:/LALALA.jpg"
  5. #在这里面设置图片的存储位置和图片存储格式
  6. r=requests.get(url)
  7. #请求得到链接
  8. r.raise_for_status()
  9. r.encoding=r.apparent_encoding
  10. with open(path,"wb")as f:
  11.         f.write(r.content)
  12.  

Reply to "Picture crawling"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website