zoujie

no message

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