具体案例可查看我的 “Python爬虫” 专栏
import requests
req = requests.get('http://t.cn/EfgN7gz')
# print(req.text)
with open('files/book.png', 'wb') as f:
f.write(req.content)
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。