本仓库用于管理 hotmail_register.py 脚本及其说明文档。仓库策略为:只追踪脚本文件、仓库说明文件和许可证文件,运行生成物、日志、账号输出文件和虚拟环境均不纳入版本控制。
本仓库采用 PolyForm Noncommercial 1.0.0 许可证发布:
- 允许学习、研究、测试和非商业用途使用
- 禁止商业用途
- 详见根目录
LICENSE
说明:该许可属于公开源码 / source-available,不是 OSI 定义下的传统开源许可证。
.
├─ hotmail_register.py # 主脚本
├─ README.md # 使用说明
├─ LICENSE # 非商用许可证
└─ .gitignore # Git 忽略规则
- Python:建议
3.13+ - 浏览器:Firefox
- 操作系统:Windows PowerShell 已验证可用
脚本中直接使用的核心依赖:
ruyiPageFakerrequests
当前本地虚拟环境中可见版本参考:
Python 3.13.12ruyiPage 1.0.13Faker 40.13.0requests 2.33.1
python -m venv venv
.\venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
python -m pip install ruyiPage Faker requests如果 PowerShell 禁止激活脚本,可临时执行:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass请先安装 Firefox。若脚本无法自动定位 Firefox,可在运行时显式指定:
python .\hotmail_register.py --firefox-path "C:\Program Files\Mozilla Firefox\firefox.exe"- 需要全自动验证码处理时,提供
--captcha-key - 需要走代理时,提供
--proxy http://user:pass@host:port - 默认会生成
hotmail_register.log、accounts.txt、reg_*.png等运行文件,这些都已被.gitignore忽略
python .\hotmail_register.py注册多个账号:
python .\hotmail_register.py --count 3指定用户名、密码和域名:
python .\hotmail_register.py --username myname --password "MyPass@123" --domain outlook.com指定输出文件:
python .\hotmail_register.py --output accounts.txt无头模式运行:
python .\hotmail_register.py --headless使用代理与 2captcha:
python .\hotmail_register.py --proxy http://user:pass@host:port --captcha-key YOUR_KEY多账号时设置注册间隔:
python .\hotmail_register.py --count 5 --delay 30accounts.txt:保存注册成功的账号信息hotmail_register.log:运行日志reg_*.png:异常或调试截图
以上文件默认不追踪。