diff --git a/main.py b/main.py index 4c0c135f61696bcf42c375ca5ab62aa5b105afc8..9eb0dc8f6cdcf208a566ba25cc751140e550b0fb 100644 --- a/main.py +++ b/main.py @@ -1 +1,14 @@ -print('欢迎来到 InsCode') \ No newline at end of file +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) + + +# 解析响应数据 + +# 是否保存 \ No newline at end of file