本文最后更新于 2024-07-26T20:49:51+08:00
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| import requests url='http://www.baidu.com' response=requests.get(url)
print(type(response))
response.encoding='utf-8'
print(response.text)
print(response.url)
print(response.content)
print(response.status_code)
print(response.headers)
|
requests_基本使用
https://ianwusb.blog/2024/07/26/requests_基本使用/