zoujie

no message

......@@ -56,8 +56,11 @@ async def get_ks_cookie(account_file):
# Pause the page, and start recording manually.
page = await context.new_page()
await page.goto("https://cp.kuaishou.com")
await page.wait_for_url("https://cp.kuaishou.com/profile")
await asyncio.sleep(1)
await page.wait_for_selector(".publish-button",timeout=50000)
print("快手登录成功")
await asyncio.sleep(3)
# await page.pause()
# 点击调试器的继续,保存cookie
await context.storage_state(path=account_file)
......