You need to sign in or sign up before continuing.
zoujie

no message

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