From ffb2049496a75e8a13f4382091ee37462c305778 Mon Sep 17 00:00:00 2001 From: tsxc Date: Sun, 26 Jan 2025 22:18:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E5=AE=9A=E8=A6=81=E8=AE=B0=E5=BE=97cl?= =?UTF-8?q?ose=20request=E5=95=8A=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script.py b/script.py index c76246d..a3cff53 100644 --- a/script.py +++ b/script.py @@ -11,6 +11,9 @@ with open("feed.xml","w",encoding='UTF-8') as f: f.write(response.text) tree =ET.parse("feed.xml") +response.keep_alive = False +response.close() + print(tree) root = tree.getroot()