From c17e9a1c1dfa144ea115125bacc41175e322c109 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 20 Aug 2025 23:29:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E7=A7=BB=E5=8A=A8=E5=92=8C?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E5=88=86=E4=B8=A4=E8=A1=8C=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spider/task.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spider/task.py b/spider/task.py index 64d63bb..88f0259 100644 --- a/spider/task.py +++ b/spider/task.py @@ -263,7 +263,8 @@ 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].hover().click() + page.query_selector_all('//img[@alt="View photo"]')[0].hover() + page.query_selector_all('//img[@alt="View photo"]')[0].click() page.reload() return page.url