main.py 342 字节
Newer Older
6
633f55cdb4d9145d67a3b0e6 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14
import requests

# 发送请求

url="https://nba.hupu.com/stats/players"
headers={'User-Agent':"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36 Edg/112.0.1722.48"}
resp=requests.get(url=url,headers=headers)
# 处理结果
print(resp.text)


# 解析响应数据

# 是否保存