@@ -328,25 +328,24 @@ def __init__(
328
328
configInstance = Config ()
329
329
configInstance .print_config ()
330
330
self .domain = configInstance .get_domain ()
331
- self .names = self .load_names ()
331
+ self .names = self .load_names ()
332
332
self .default_password = password
333
333
self .default_first_name = self .generate_random_name ()
334
334
self .default_last_name = self .generate_random_name ()
335
-
335
+
336
336
def load_names (self ):
337
- with open (' names-dataset.txt' , 'r' ) as file :
337
+ with open (" names-dataset.txt" , "r" ) as file :
338
338
return file .read ().split ()
339
-
340
- def generate_random_name (self ):
341
- """生成随机用户名"""
342
- return random .choice (self .names )
343
339
340
+ def generate_random_name (self ):
341
+ """生成随机用户名"""
342
+ return random .choice (self .names )
344
343
345
344
def generate_email (self , length = 4 ):
346
- """生成随机邮箱地址"""
347
- length = random .randint (0 , length ) # 生成0到length之间的随机整数
345
+ """生成随机邮箱地址"""
346
+ length = random .randint (0 , length ) # 生成0到length之间的随机整数
348
347
timestamp = str (int (time .time ()))[- length :] # 使用时间戳后length位
349
- return f"{ self .default_first_name } { timestamp } @{ self .domain } " #
348
+ return f"{ self .default_first_name } { timestamp } @{ self .domain } " #
350
349
351
350
def get_account_info (self ):
352
351
"""获取完整的账号信息"""
@@ -394,6 +393,7 @@ def print_end_message():
394
393
logging .info ("所有操作已完成" )
395
394
logging .info ("\n === 获取更多信息 ===" )
396
395
logging .info ("📺 B站UP主: 想回家的前端" )
396
+ logging .info ("🔥 公众号: code 未来" )
397
397
logging .info ("=" * 30 )
398
398
logging .info (
399
399
"请前往开源项目查看更多信息:https://github.com/chengazhen/cursor-auto-free"
@@ -457,21 +457,18 @@ def print_end_message():
457
457
mail_url = "https://tempmail.plus"
458
458
459
459
logging .info ("正在生成随机账号信息..." )
460
-
460
+
461
461
email_generator = EmailGenerator ()
462
462
first_name = email_generator .default_first_name
463
463
last_name = email_generator .default_last_name
464
464
account = email_generator .generate_email ()
465
465
password = email_generator .default_password
466
466
467
-
468
-
469
467
logging .info (f"生成的邮箱账号: { account } " )
470
468
471
469
logging .info ("正在初始化邮箱验证模块..." )
472
470
email_handler = EmailVerificationHandler (account )
473
471
474
-
475
472
auto_update_cursor_auth = True
476
473
477
474
tab = browser .latest_tab
0 commit comments