|
|
@ -66,7 +66,11 @@ class KimiSpider(AbstractAiSeoSpider): |
|
|
# 监听请求 |
|
|
# 监听请求 |
|
|
# self.browser_page.on('response', partial(self.__listen_response)) |
|
|
# self.browser_page.on('response', partial(self.__listen_response)) |
|
|
# await self.completed_event.wait() |
|
|
# 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]" |
|
|
copy_btn_xpath = "//div[@class='segment-assistant-actions-content']/div[@class='simple-button size-small'][1]" |
|
|
|