Browse Source

feat: goto page and wait for manual login

wuwenyi 2 months ago
parent
commit
c05f5c6716
1 changed files with 2 additions and 0 deletions
  1. 2 0
      api/login.py

+ 2 - 0
api/login.py

@@ -20,6 +20,8 @@ def create_page():
     if not api.contain_browser(account):
         browser = instagram.InstagramBrowser(account)
         browser.__init_browser__(playwright=None)
+        browser.page.goto(instagram.IG_URL)
+        browser.page.wait_for_timeout(60000)
         browser.close()
         api.add_account(account)
     return api.success()