From 05c69b66cace6ee132edc33f8b8ff4da07c35bcc Mon Sep 17 00:00:00 2001 From: zzx Date: Mon, 21 Jul 2025 20:09:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=96=87=E5=BF=83=E4=B8=80=E8=A8=80?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=BF=94=E5=9B=9E=E6=97=A7=E7=89=88=E6=8C=89?= =?UTF-8?q?=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spiders/ai_seo/yiyan.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spiders/ai_seo/yiyan.py b/spiders/ai_seo/yiyan.py index b69c227..f58e86b 100644 --- a/spiders/ai_seo/yiyan.py +++ b/spiders/ai_seo/yiyan.py @@ -172,6 +172,10 @@ class YiYanSpider(AbstractAiSeoSpider): async def check_login(self): # 找登录后才会出现的侧边栏 try: + old_btn = self.browser_page.locator("//div[text()='返回旧版']") + if await old_btn.is_visible(): + await old_btn.click() + await asyncio.sleep(3) await self.browser_page.locator("//div[@id='eb_sidebar']").wait_for(state='attached', timeout=20000) except Exception: # 更新session状态