From 5ed4959e2275744d776b3201545b9a4346f6dbd0 Mon Sep 17 00:00:00 2001 From: 2509165036 <2509165036@student.edu.cn> Date: Tue, 24 Mar 2026 10:46:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E4=BD=9C=E4=B8=9AX?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- task-2-1-data-collection | 1 + text.py | 5 +++++ 2 files changed, 6 insertions(+) create mode 160000 task-2-1-data-collection create mode 100644 text.py diff --git a/task-2-1-data-collection b/task-2-1-data-collection new file mode 160000 index 0000000..545a1e9 --- /dev/null +++ b/task-2-1-data-collection @@ -0,0 +1 @@ +Subproject commit 545a1e905e067b8bdc100ea5d86334c5e0abeaa9 diff --git a/text.py b/text.py new file mode 100644 index 0000000..71428a1 --- /dev/null +++ b/text.py @@ -0,0 +1,5 @@ +import requests +url = "https://m.douban.com/subject_collection/ECGRADN5Q" +response = requests.get(url,headers=header,params={'key':'value'}) +print(response.status_code) +//*[@id="content"]/h1/span[1]