Преглед изворни кода

refactor: remove deprecated config files and update logging in account management scripts

chengchongzhen пре 1 година
родитељ
комит
50e69cd51c
4 измењених фајлова са 2 додато и 12 уклоњено
  1. 0 5
      config.ini
  2. 0 5
      config.ini.example
  3. 1 1
      cursor_pro_keep_alive.py
  4. 1 1
      get_veri_code.py

+ 0 - 5
config.ini

@@ -1,5 +0,0 @@
-[Account]
-email = dounpuv@mailto.plus
-password = ccz14321@
-first_name = cheng
-last_name = zhen 

+ 0 - 5
config.ini.example

@@ -1,5 +0,0 @@
-[Account]
-email = xxx@mailto.plus
-password = xxxx
-first_name = xxx
-last_name = xxx 

+ 1 - 1
cursor_pro_keep_alive.py

@@ -189,6 +189,7 @@ def delete_account(browser, tab):
 
 def get_cursor_session_token(tab):
     """获取cursor session token"""
+    print("开始获取cookie")
     cookies = tab.cookies()
     cursor_session_token = None
     for cookie in cookies:
@@ -209,7 +210,6 @@ def update_cursor_auth(email=None, access_token=None, refresh_token=None):
 
 
 def sign_up_account(browser, tab):
-    """注册账户流程"""
     print("\n开始注册新账户...")
     tab.get(sign_up_url)
 

+ 1 - 1
get_veri_code.py

@@ -18,7 +18,7 @@ class EmailVerificationHandler:
             # 打开新标签页访问临时邮箱
             tab_mail = self.browser.new_tab(self.mail_url)
             self.browser.activate_tab(tab_mail)
-            logging.info("打开邮箱页面")
+            print("打开邮箱页面")
 
             # 输入用户名
             self._input_username(tab_mail, username)