MCPcopy Create free account

hub / github.com/TongjiRabbit/gpt-auto-register / functions

Functions222 in github.com/TongjiRabbit/gpt-auto-register

↓ 226 callersMethodget
获取原始配置值(支持点号路径) 参数: key: 配置键,支持点号分隔的路径,如 'email.domain' default: 默认值 返回:
app/config.py:330
↓ 24 callersMethodjson
(self)
tests/test_oauth_branching.py:16
↓ 15 callersMethodpost
(self, url, files=None, headers=None, timeout=None, verify=None)
tests/test_oauth_service.py:31
↓ 11 callersFunction_request_kwargs
(impersonate: str | None = None)
app/oauth_service.py:71
↓ 11 callersFunctionextract_verification_code
从邮件内容中提取 6 位数字验证码 参数: content: 邮件内容(HTML 或纯文本) 返回: str: 提取到的验证码,未找到返回 None
app/utils.py:218
↓ 9 callersMethod_print
(self, message: str)
app/oauth_service.py:374
↓ 8 callersFunction_report
(step_name)
app/main.py:50
↓ 8 callersFunctiontype_slowly
模拟人工缓慢输入 参数: element: 输入框元素 text: 要输入的文本 delay: 每个字符之间的延迟(秒)
app/browser.py:698
↓ 6 callersFunction_decode_header_value
(value: str | None)
app/custom2925_service.py:42
↓ 6 callersFunction_extract_code_from_url
(url: str)
app/oauth_service.py:115
↓ 6 callersFunction_sleep_with_heartbeat
分段睡眠,期间定期上报监控,避免前端画面在长等待中“卡住”。
app/browser.py:588
↓ 5 callersMethod_oauth_json_headers
(self, referer: str)
app/oauth_service.py:378
↓ 5 callersFunctionget_user_agent
获取 User-Agent 字符串 返回: str: User-Agent
app/utils.py:125
↓ 5 callersFunctionreport_progress
(current_email: str = "", status: str = "")
app/token_batch_service.py:61
↓ 5 callersFunctionsave_codex_tokens
(email: str, tokens: dict, oauth_cfg=None, cpa_cfg=None, proxy: dict | None = None, session_factory: Callable
app/oauth_service.py:915
↓ 5 callersMethodstart
启动中继(如已用相同配置启动则直接返回端口)。
app/browser.py:245
↓ 4 callersMethod_as_bool
(value: Any)
app/config.py:319
↓ 4 callersMethod_follow_for_code
(self, start_url: str, referer: str | None = None, max_hops: int = 16)
app/oauth_service.py:436
↓ 4 callersFunction_resolve_repo_path
(path_value: str)
app/server.py:478
↓ 4 callersFunctionload_account_from_file
(file_path: str, email: str)
app/stored_accounts.py:36
↓ 4 callersFunctionsave_to_txt
保存账号信息到 TXT 文件 格式: 邮箱|ChatGPT密码|时间|状态|临时邮箱凭证|提供商 如果账号已存在,则更新其信息
app/utils.py:165
↓ 4 callersMethodupdate_progress
(self, *, task_type=None, total=None, completed=None, processed=None, skipped=None)
app/server.py:96
↓ 3 callersMethod_base64_encode
(data)
app/oauth_service.py:247
↓ 3 callersFunctionbuild_requests_proxies
将代理配置字典转换为 requests 库的 proxies 参数格式。 proxy 未启用时返回空字典(不使用代理)。
app/utils.py:91
↓ 3 callersFunctionbuild_sentinel_token
(session, device_id, flow="authorize_continue", user_agent=None, sec_ch_ua=None, impersonate=None)
app/oauth_service.py:308
↓ 3 callersFunctioncheck_and_handle_error
检测页面错误并自动重试 参数: driver: 浏览器驱动 max_retries: 最大重试次数 返回: bool: 是否检测到错误并处理
app/browser.py:602
↓ 3 callersFunctionload_accounts_from_file
(file_path: str)
app/stored_accounts.py:13
↓ 3 callersFunctionprocess_accounts_from_file
( accounts_file: str, output_dir: str, proxy: dict | None = None, stop_requested=None, pro
app/token_batch_service.py:43
↓ 3 callersMethodquit
(self)
app/browser.py:128
↓ 3 callersMethodset
(self, *args, **kwargs)
tests/test_oauth_branching.py:24
↓ 3 callersMethodupdate_frame
(self, frame_bytes)
app/server.py:80
↓ 2 callersFunction_api_get_messages
调用 Temporam API 获取邮件列表,失败返回空列表。
app/temporam_service.py:87
↓ 2 callersMethod_bootstrap_oauth_session
(self, authorize_url: str, authorize_params: dict)
app/oauth_service.py:390
↓ 2 callersFunction_create_alias_session
(alias_email: str, lookback_seconds: int | None = None)
app/custom2925_service.py:243
↓ 2 callersFunction_detect_chrome_major_version
检测本机 Chrome 主版本,避免与 UC driver 主版本不匹配。
app/browser.py:339
↓ 2 callersFunction_extract_codes_from_messages
(session: dict, messages: list[tuple[str, Message, str]], mark_seen: bool)
app/custom2925_service.py:279
↓ 2 callersFunction_extract_message_text
(msg: Message)
app/custom2925_service.py:99
↓ 2 callersFunction_fetch_matching_messages
(alias_email: str, created_after: datetime, seen_uids: set[str])
app/custom2925_service.py:203
↓ 2 callersMethod_get_config
(self)
app/oauth_service.py:191
↓ 2 callersMethod_load_config
加载配置文件
app/config.py:188
↓ 2 callersFunction_message_timestamp
(msg: Message)
app/custom2925_service.py:134
↓ 2 callersFunction_needs_email_otp
(page_type: str, continue_url: str)
app/oauth_service.py:138
↓ 2 callersFunction_new_session
(impersonate: str | None = None)
app/oauth_service.py:77
↓ 2 callersFunction_resolve_output_path
(path_value: str)
app/oauth_service.py:157
↓ 2 callersFunction_resolve_path
(path_value: str)
app/oauth_service.py:151
↓ 2 callersFunction_resolve_request_path
(path_value: str)
app/server.py:485
↓ 2 callersFunctionapply_proxy_to_options
将代理配置写入 ChromeOptions。 proxy 格式: { "enabled": True, "type": "http" | "socks5", "host": "1.2.3.4", "port
app/browser.py:368
↓ 2 callersFunctionclearLogs
()
static/script.js:291
↓ 2 callersFunctionclick_button_with_retry
带重试机制的按钮点击 参数: driver: 浏览器驱动 selector: CSS 选择器 max_retries: 最大重试次数 返回: bool: 是否成功点击
app/browser.py:664
↓ 2 callersFunctionfind_single_file
(root_dir: str, filename: str)
tests/test_oauth_service.py:10
↓ 2 callersFunctiongenerate_random_name
生成随机英文姓名 使用 Faker 库生成更真实的姓名,如果 Faker 不可用则回退到内置列表 返回: str: 格式为 "FirstName LastName" 的随机姓名
app/utils.py:257
↓ 2 callersMethodgenerate_requirements_token
(self)
app/oauth_service.py:271
↓ 2 callersMethodget_messages
获取收件箱邮件。
app/tempmail_lol_service.py:47
↓ 2 callersFunctionis_oauth_success_status
(status: str)
app/stored_accounts.py:44
↓ 2 callersMethodlist_emails
获取收件箱邮件列表。
app/gptmail_service.py:62
↓ 2 callersFunctionloadTokenImportSettings
()
static/script.js:247
↓ 2 callersFunctionperform_codex_oauth_login
(email: str, password: str, email_provider: str, mail_token: str | None = None, proxy: dict | None = None)
app/oauth_service.py:987
↓ 2 callersMethodperform_login
(self, email: str, password: str | None, email_provider: str, mail_token: str | None = None)
app/oauth_service.py:597
↓ 2 callersFunctionrenderAccounts
(accounts)
static/script.js:312
↓ 2 callersMethodreset_progress
(self, task_type="idle", total=0)
app/server.py:88
↓ 2 callersFunctionrun_batch
批量注册账号 :param selected_providers: 可用提供商列表,每次随机从中选一个;为 None 则仅用 mailtm
app/main.py:233
↓ 2 callersFunctionserve_app
()
app/server.py:472
↓ 2 callersFunctionswitchTab
(tabName)
static/script.js:15
↓ 2 callersFunctionupdate_account_status
更新账号状态
app/utils.py:213
↓ 2 callersFunctionupdate_account_status_in_file
(file_path: str, email: str, new_status: str)
app/stored_accounts.py:48
↓ 1 callersFunction_build_alias
(index: int)
app/custom2925_service.py:71
↓ 1 callersFunction_build_output_oauth_cfg
(output_dir: str)
app/token_batch_service.py:20
↓ 1 callersFunction_build_proxy_extension
为有凭证的代理创建 Chrome 扩展 zip 文件(写入临时目录)。 返回 zip 文件路径。 无凭证代理不需要扩展,直接用 --proxy-server 参数即可。
app/browser.py:292
↓ 1 callersFunction_cliproxy_file_name
(email: str)
app/oauth_service.py:867
↓ 1 callersFunction_connect_imap
()
app/custom2925_service.py:80
↓ 1 callersFunction_decode_jwt_payload
(token: str)
app/oauth_service.py:124
↓ 1 callersMethod_decode_oauth_session_cookie
(self)
app/oauth_service.py:484
↓ 1 callersFunction_dismiss_onboarding
尝试关闭 onboarding 弹窗(条款确认、功能介绍等)。
app/browser.py:1258
↓ 1 callersFunction_ensure_cookies
返回全局 Cookie,如果尚未初始化则先获取。
app/temporam_service.py:78
↓ 1 callersFunction_ensure_counter_file
(path: Path)
app/custom2925_service.py:51
↓ 1 callersFunction_fetch_cookies
打开浏览器访问 Temporam,拿到 Cookie 后立即关闭浏览器。
app/temporam_service.py:43
↓ 1 callersFunction_fetch_rfc822
(client, fetch_id: bytes | str, use_uid_fetch: bool)
app/custom2925_service.py:197
↓ 1 callersMethod_find_config_file
查找配置文件
app/config.py:177
↓ 1 callersFunction_find_verification_inputs
(driver, code: str)
app/browser.py:1043
↓ 1 callersMethod_fnv1a_32
(text: str)
app/oauth_service.py:179
↓ 1 callersFunction_generate_pkce
()
app/oauth_service.py:108
↓ 1 callersFunction_get_available_domain
获取 mail.tm 可用域名
app/mailtm_service.py:16
↓ 1 callersFunction_has_usable_password
(password: str | None)
app/oauth_service.py:146
↓ 1 callersMethod_init_browser_session
访问首页获取 gm_sid Cookie 和 JWT token。
app/gptmail_service.py:38
↓ 1 callersFunction_is_email_verification_page
(driver)
app/browser.py:38
↓ 1 callersFunction_iter_recent_message_ids
返回最近邮件标识列表: (display_id, fetch_id, use_uid_fetch)。
app/custom2925_service.py:173
↓ 1 callersFunction_login_existing_mailbox
(provider: str, email: str, mailbox_credential: str)
app/token_batch_service.py:29
↓ 1 callersFunction_make_trace_headers
()
app/oauth_service.py:95
↓ 1 callersFunction_message_looks_like_openai
(msg: Message, body: str)
app/custom2925_service.py:166
↓ 1 callersFunction_message_matches_alias
(msg: Message, alias_email: str, created_after: datetime)
app/custom2925_service.py:147
↓ 1 callersFunction_next_alias_index
()
app/custom2925_service.py:57
↓ 1 callersFunction_page_text
(driver)
app/browser.py:31
↓ 1 callersMethod_parse_config
解析原始配置到数据类
app/config.py:218
↓ 1 callersFunction_random_chrome_version
()
app/oauth_service.py:83
↓ 1 callersFunction_relay_pipe
单向管道:把 src 收到的数据原样转发给 dst。
app/browser.py:143
↓ 1 callersFunction_resolve_path
(path_value: str)
app/custom2925_service.py:35
↓ 1 callersMethod_run_check
(self, start_time, seed, difficulty, config, nonce)
app/oauth_service.py:251
↓ 1 callersMethod_stop_locked
(self)
app/browser.py:278
↓ 1 callersMethod_submit_workspace_and_org
(self, consent_url: str)
app/oauth_service.py:511
↓ 1 callersFunction_upload_to_cliproxy
将 Codex Token 上传到 CLIProxyAPI token 池。 优先 HTTP POST(需要 CLIPROXY_API_KEY),失败则直接写 auth dir 文件。
app/oauth_service.py:872
next →1–100 of 222, ranked by callers