Merge branch 'master' of ssh://gitlab.rinal-li.cn:10022/liufuhua/xj-marketing
Showing
1 changed file
with
2 additions
and
1 deletions
| ... | @@ -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 | ... | ... |
-
Please register or login to post a comment