|
|
@ -172,6 +172,10 @@ class YiYanSpider(AbstractAiSeoSpider): |
|
|
async def check_login(self): |
|
|
async def check_login(self): |
|
|
# 找登录后才会出现的侧边栏 |
|
|
# 找登录后才会出现的侧边栏 |
|
|
try: |
|
|
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) |
|
|
await self.browser_page.locator("//div[@id='eb_sidebar']").wait_for(state='attached', timeout=20000) |
|
|
except Exception: |
|
|
except Exception: |
|
|
# 更新session状态 |
|
|
# 更新session状态 |
|
|
|