Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TongjiRabbit/gpt-auto-register
/ functions
Functions
222 in github.com/TongjiRabbit/gpt-auto-register
⨍
Functions
222
◇
Types & classes
32
↳
Endpoints
13
↓ 226 callers
Method
get
获取原始配置值(支持点号路径) 参数: key: 配置键,支持点号分隔的路径,如 'email.domain' default: 默认值 返回:
app/config.py:330
↓ 24 callers
Method
json
(self)
tests/test_oauth_branching.py:16
↓ 15 callers
Method
post
(self, url, files=None, headers=None, timeout=None, verify=None)
tests/test_oauth_service.py:31
↓ 11 callers
Function
_request_kwargs
(impersonate: str | None = None)
app/oauth_service.py:71
↓ 11 callers
Function
extract_verification_code
从邮件内容中提取 6 位数字验证码 参数: content: 邮件内容(HTML 或纯文本) 返回: str: 提取到的验证码,未找到返回 None
app/utils.py:218
↓ 9 callers
Method
_print
(self, message: str)
app/oauth_service.py:374
↓ 8 callers
Function
_report
(step_name)
app/main.py:50
↓ 8 callers
Function
type_slowly
模拟人工缓慢输入 参数: element: 输入框元素 text: 要输入的文本 delay: 每个字符之间的延迟(秒)
app/browser.py:698
↓ 6 callers
Function
_decode_header_value
(value: str | None)
app/custom2925_service.py:42
↓ 6 callers
Function
_extract_code_from_url
(url: str)
app/oauth_service.py:115
↓ 6 callers
Function
_sleep_with_heartbeat
分段睡眠,期间定期上报监控,避免前端画面在长等待中“卡住”。
app/browser.py:588
↓ 5 callers
Method
_oauth_json_headers
(self, referer: str)
app/oauth_service.py:378
↓ 5 callers
Function
get_user_agent
获取 User-Agent 字符串 返回: str: User-Agent
app/utils.py:125
↓ 5 callers
Function
report_progress
(current_email: str = "", status: str = "")
app/token_batch_service.py:61
↓ 5 callers
Function
save_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 callers
Method
start
启动中继(如已用相同配置启动则直接返回端口)。
app/browser.py:245
↓ 4 callers
Method
_as_bool
(value: Any)
app/config.py:319
↓ 4 callers
Method
_follow_for_code
(self, start_url: str, referer: str | None = None, max_hops: int = 16)
app/oauth_service.py:436
↓ 4 callers
Function
_resolve_repo_path
(path_value: str)
app/server.py:478
↓ 4 callers
Function
load_account_from_file
(file_path: str, email: str)
app/stored_accounts.py:36
↓ 4 callers
Function
save_to_txt
保存账号信息到 TXT 文件 格式: 邮箱|ChatGPT密码|时间|状态|临时邮箱凭证|提供商 如果账号已存在,则更新其信息
app/utils.py:165
↓ 4 callers
Method
update_progress
(self, *, task_type=None, total=None, completed=None, processed=None, skipped=None)
app/server.py:96
↓ 3 callers
Method
_base64_encode
(data)
app/oauth_service.py:247
↓ 3 callers
Function
build_requests_proxies
将代理配置字典转换为 requests 库的 proxies 参数格式。 proxy 未启用时返回空字典(不使用代理)。
app/utils.py:91
↓ 3 callers
Function
build_sentinel_token
(session, device_id, flow="authorize_continue", user_agent=None, sec_ch_ua=None, impersonate=None)
app/oauth_service.py:308
↓ 3 callers
Function
check_and_handle_error
检测页面错误并自动重试 参数: driver: 浏览器驱动 max_retries: 最大重试次数 返回: bool: 是否检测到错误并处理
app/browser.py:602
↓ 3 callers
Function
load_accounts_from_file
(file_path: str)
app/stored_accounts.py:13
↓ 3 callers
Function
process_accounts_from_file
( accounts_file: str, output_dir: str, proxy: dict | None = None, stop_requested=None, pro
app/token_batch_service.py:43
↓ 3 callers
Method
quit
(self)
app/browser.py:128
↓ 3 callers
Method
set
(self, *args, **kwargs)
tests/test_oauth_branching.py:24
↓ 3 callers
Method
update_frame
(self, frame_bytes)
app/server.py:80
↓ 2 callers
Function
_api_get_messages
调用 Temporam API 获取邮件列表,失败返回空列表。
app/temporam_service.py:87
↓ 2 callers
Method
_bootstrap_oauth_session
(self, authorize_url: str, authorize_params: dict)
app/oauth_service.py:390
↓ 2 callers
Function
_create_alias_session
(alias_email: str, lookback_seconds: int | None = None)
app/custom2925_service.py:243
↓ 2 callers
Function
_detect_chrome_major_version
检测本机 Chrome 主版本,避免与 UC driver 主版本不匹配。
app/browser.py:339
↓ 2 callers
Function
_extract_codes_from_messages
(session: dict, messages: list[tuple[str, Message, str]], mark_seen: bool)
app/custom2925_service.py:279
↓ 2 callers
Function
_extract_message_text
(msg: Message)
app/custom2925_service.py:99
↓ 2 callers
Function
_fetch_matching_messages
(alias_email: str, created_after: datetime, seen_uids: set[str])
app/custom2925_service.py:203
↓ 2 callers
Method
_get_config
(self)
app/oauth_service.py:191
↓ 2 callers
Method
_load_config
加载配置文件
app/config.py:188
↓ 2 callers
Function
_message_timestamp
(msg: Message)
app/custom2925_service.py:134
↓ 2 callers
Function
_needs_email_otp
(page_type: str, continue_url: str)
app/oauth_service.py:138
↓ 2 callers
Function
_new_session
(impersonate: str | None = None)
app/oauth_service.py:77
↓ 2 callers
Function
_resolve_output_path
(path_value: str)
app/oauth_service.py:157
↓ 2 callers
Function
_resolve_path
(path_value: str)
app/oauth_service.py:151
↓ 2 callers
Function
_resolve_request_path
(path_value: str)
app/server.py:485
↓ 2 callers
Function
apply_proxy_to_options
将代理配置写入 ChromeOptions。 proxy 格式: { "enabled": True, "type": "http" | "socks5", "host": "1.2.3.4", "port
app/browser.py:368
↓ 2 callers
Function
clearLogs
()
static/script.js:291
↓ 2 callers
Function
click_button_with_retry
带重试机制的按钮点击 参数: driver: 浏览器驱动 selector: CSS 选择器 max_retries: 最大重试次数 返回: bool: 是否成功点击
app/browser.py:664
↓ 2 callers
Function
find_single_file
(root_dir: str, filename: str)
tests/test_oauth_service.py:10
↓ 2 callers
Function
generate_random_name
生成随机英文姓名 使用 Faker 库生成更真实的姓名,如果 Faker 不可用则回退到内置列表 返回: str: 格式为 "FirstName LastName" 的随机姓名
app/utils.py:257
↓ 2 callers
Method
generate_requirements_token
(self)
app/oauth_service.py:271
↓ 2 callers
Method
get_messages
获取收件箱邮件。
app/tempmail_lol_service.py:47
↓ 2 callers
Function
is_oauth_success_status
(status: str)
app/stored_accounts.py:44
↓ 2 callers
Method
list_emails
获取收件箱邮件列表。
app/gptmail_service.py:62
↓ 2 callers
Function
loadTokenImportSettings
()
static/script.js:247
↓ 2 callers
Function
perform_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 callers
Method
perform_login
(self, email: str, password: str | None, email_provider: str, mail_token: str | None = None)
app/oauth_service.py:597
↓ 2 callers
Function
renderAccounts
(accounts)
static/script.js:312
↓ 2 callers
Method
reset_progress
(self, task_type="idle", total=0)
app/server.py:88
↓ 2 callers
Function
run_batch
批量注册账号 :param selected_providers: 可用提供商列表,每次随机从中选一个;为 None 则仅用 mailtm
app/main.py:233
↓ 2 callers
Function
serve_app
()
app/server.py:472
↓ 2 callers
Function
switchTab
(tabName)
static/script.js:15
↓ 2 callers
Function
update_account_status
更新账号状态
app/utils.py:213
↓ 2 callers
Function
update_account_status_in_file
(file_path: str, email: str, new_status: str)
app/stored_accounts.py:48
↓ 1 callers
Function
_build_alias
(index: int)
app/custom2925_service.py:71
↓ 1 callers
Function
_build_output_oauth_cfg
(output_dir: str)
app/token_batch_service.py:20
↓ 1 callers
Function
_build_proxy_extension
为有凭证的代理创建 Chrome 扩展 zip 文件(写入临时目录)。 返回 zip 文件路径。 无凭证代理不需要扩展,直接用 --proxy-server 参数即可。
app/browser.py:292
↓ 1 callers
Function
_cliproxy_file_name
(email: str)
app/oauth_service.py:867
↓ 1 callers
Function
_connect_imap
()
app/custom2925_service.py:80
↓ 1 callers
Function
_decode_jwt_payload
(token: str)
app/oauth_service.py:124
↓ 1 callers
Method
_decode_oauth_session_cookie
(self)
app/oauth_service.py:484
↓ 1 callers
Function
_dismiss_onboarding
尝试关闭 onboarding 弹窗(条款确认、功能介绍等)。
app/browser.py:1258
↓ 1 callers
Function
_ensure_cookies
返回全局 Cookie,如果尚未初始化则先获取。
app/temporam_service.py:78
↓ 1 callers
Function
_ensure_counter_file
(path: Path)
app/custom2925_service.py:51
↓ 1 callers
Function
_fetch_cookies
打开浏览器访问 Temporam,拿到 Cookie 后立即关闭浏览器。
app/temporam_service.py:43
↓ 1 callers
Function
_fetch_rfc822
(client, fetch_id: bytes | str, use_uid_fetch: bool)
app/custom2925_service.py:197
↓ 1 callers
Method
_find_config_file
查找配置文件
app/config.py:177
↓ 1 callers
Function
_find_verification_inputs
(driver, code: str)
app/browser.py:1043
↓ 1 callers
Method
_fnv1a_32
(text: str)
app/oauth_service.py:179
↓ 1 callers
Function
_generate_pkce
()
app/oauth_service.py:108
↓ 1 callers
Function
_get_available_domain
获取 mail.tm 可用域名
app/mailtm_service.py:16
↓ 1 callers
Function
_has_usable_password
(password: str | None)
app/oauth_service.py:146
↓ 1 callers
Method
_init_browser_session
访问首页获取 gm_sid Cookie 和 JWT token。
app/gptmail_service.py:38
↓ 1 callers
Function
_is_email_verification_page
(driver)
app/browser.py:38
↓ 1 callers
Function
_iter_recent_message_ids
返回最近邮件标识列表: (display_id, fetch_id, use_uid_fetch)。
app/custom2925_service.py:173
↓ 1 callers
Function
_login_existing_mailbox
(provider: str, email: str, mailbox_credential: str)
app/token_batch_service.py:29
↓ 1 callers
Function
_make_trace_headers
()
app/oauth_service.py:95
↓ 1 callers
Function
_message_looks_like_openai
(msg: Message, body: str)
app/custom2925_service.py:166
↓ 1 callers
Function
_message_matches_alias
(msg: Message, alias_email: str, created_after: datetime)
app/custom2925_service.py:147
↓ 1 callers
Function
_next_alias_index
()
app/custom2925_service.py:57
↓ 1 callers
Function
_page_text
(driver)
app/browser.py:31
↓ 1 callers
Method
_parse_config
解析原始配置到数据类
app/config.py:218
↓ 1 callers
Function
_random_chrome_version
()
app/oauth_service.py:83
↓ 1 callers
Function
_relay_pipe
单向管道:把 src 收到的数据原样转发给 dst。
app/browser.py:143
↓ 1 callers
Function
_resolve_path
(path_value: str)
app/custom2925_service.py:35
↓ 1 callers
Method
_run_check
(self, start_time, seed, difficulty, config, nonce)
app/oauth_service.py:251
↓ 1 callers
Method
_stop_locked
(self)
app/browser.py:278
↓ 1 callers
Method
_submit_workspace_and_org
(self, consent_url: str)
app/oauth_service.py:511
↓ 1 callers
Function
_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