From 212874fda6f310e0ba3d2b6e3edd9627d8480ff1 Mon Sep 17 00:00:00 2001 From: zzx Date: Wed, 15 Oct 2025 09:26:08 +0800 Subject: [PATCH] =?UTF-8?q?fix(spiders/ai=5Fseo/kimi.py):=20=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E7=AD=89=E5=BE=85=E6=97=B6=E9=97=B4=E5=B9=B6=E5=A4=84?= =?UTF-8?q?=E7=90=86=E5=8F=96=E6=B6=88=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spiders/ai_seo/kimi.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spiders/ai_seo/kimi.py b/spiders/ai_seo/kimi.py index da303e3..5800937 100644 --- a/spiders/ai_seo/kimi.py +++ b/spiders/ai_seo/kimi.py @@ -66,7 +66,11 @@ class KimiSpider(AbstractAiSeoSpider): # 监听请求 # self.browser_page.on('response', partial(self.__listen_response)) # await self.completed_event.wait() - await asyncio.sleep(2) + await asyncio.sleep(6) + + cancel_btn = self.browser_page.locator('//button[text()="取消"]') + if await cancel_btn.is_visible(): + await cancel_btn.click() # 等待复制按钮可见 copy_btn_xpath = "//div[@class='segment-assistant-actions-content']/div[@class='simple-button size-small'][1]"