From 7aa75f516edafad3aa68579e424fa83eae449e03 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 20 Aug 2025 23:03:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E7=A7=BB=E5=8A=A8=E5=90=8E?= =?UTF-8?q?=E7=82=B9=E5=87=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spider/task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spider/task.py b/spider/task.py index 0599b2d..64d63bb 100644 --- a/spider/task.py +++ b/spider/task.py @@ -263,7 +263,7 @@ def retry_get_new_video(page, cookies, video_count): new_videO_count = get_video_count(page, cookies) # 如果新视频数量大于初始视频数量,则表示有新视频上传 if new_videO_count > video_count: - page.query_selector_all('//img[@alt="View photo"]')[0].click() + page.query_selector_all('//img[@alt="View photo"]')[0].hover().click() page.reload() return page.url