liufuhua007
...@@ -58,7 +58,8 @@ async def douyin_cookie_gen(account_file): ...@@ -58,7 +58,8 @@ async def douyin_cookie_gen(account_file):
58 # Pause the page, and start recording manually. 58 # Pause the page, and start recording manually.
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.pause() 61 + await page.wait_for_url("https://creator.douyin.com/creator-micro/home")
62 + # await page.pause()
62 # 点击调试器的继续,保存cookie 63 # 点击调试器的继续,保存cookie
63 await context.storage_state(path=account_file) 64 await context.storage_state(path=account_file)
64 65
......