zoujie

no message

......@@ -59,6 +59,8 @@ async def douyin_cookie_gen(account_file):
page = await context.new_page()
await page.goto("https://creator.douyin.com/")
await page.wait_for_url("https://creator.douyin.com/creator-micro/home")
await asyncio.sleep(1)
# page.pause()
# await page.pause()
# 点击调试器的继续,保存cookie
await context.storage_state(path=account_file)
......
......@@ -56,7 +56,9 @@ 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.pause()
await page.wait_for_url("https://cp.kuaishou.com/profile")
await asyncio.sleep(1)
# await page.pause()
# 点击调试器的继续,保存cookie
await context.storage_state(path=account_file)
......
......@@ -65,7 +65,9 @@ async def get_tencent_cookie(account_file):
context = await set_init_script(context)
page = await context.new_page()
await page.goto("https://channels.weixin.qq.com")
await page.pause()
# await page.pause()
await page.wait_for_url("https://channels.weixin.qq.com/platform")
await asyncio.sleep(1)
# 点击调试器的继续,保存cookie
await context.storage_state(path=account_file)
......