From adee8a360550d2f84156474ffce0f948ee60ada7 Mon Sep 17 00:00:00 2001 From: 633f55cdb4d9145d67a3b0e6 <633f55cdb4d9145d67a3b0e6@devide> Date: Sat, 22 Apr 2023 15:39:13 +0000 Subject: [PATCH] Auto commit --- main.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 4c0c135..9eb0dc8 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 -- GitLab