From 2a341a7c424b1e69011b5c6cada3a13add74a6cc Mon Sep 17 00:00:00 2001 From: JoeamAmier Date: Mon, 28 Aug 2023 22:51:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 8b50a71..e423ecf 100644 --- a/main.py +++ b/main.py @@ -32,5 +32,15 @@ def example(): print(xhs.extract(video_demo, download=download)) +def main(): + xhs = XHS() + while True: + if url := input("请输入小红书作品链接:"): + xhs.extract(url, download=True) + else: + break + + if __name__ == '__main__': - example() + # example() + main()