:) 如何使用python 爬取网络图片
第一步 开启你的 c m d 输入一段神秘代码
Nice! My, bro. 你的编辑器(我用的是pycharm,其实什么编辑器都一样)现在可以 import requests
第二步 打开编辑器
import requests
# url ="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1574779166644&di=999c7ec49f755e9471e32f158c9059af&imgtype=0&63.com%2Fshow%2Fjingling%2Fimages%2Fcao%2Fyll02_230.JPG%3Fw%3D230%26h%3D200"
# url="http://image.biaobaiju.com/uploads/20180803/20/1533299187-TvuqKrNIGY.jpg"
url = 'http://jlcs.163.com/show/jingling/images/cao/yll02_230.JPG?w=230&h=200'
r = requests.get(url)
with open ("D:/爬/p.jpg","wb") as f:
f.write(r.content)