You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用Python+TwoCaptcha绕过Outlook Funcaptcha失败求助

解决Python+TwoCaptcha绕过Outlook Funcaptcha失败的问题
  • 填充有效API密钥:原代码中api_key=''为空字符串,这是核心问题——TwoCaptcha必须使用账号对应的有效API密钥才能发起验证码请求。
  • 避免覆盖求解器实例:原代码中solver = solver.solve_funcaptcha(...)会把验证码结果覆盖掉初始的求解器对象,后续无法调用求解器的其他方法,需用单独变量接收结果。
  • 处理并提交验证结果:solve_funcaptcha返回的是验证所需的token,必须将这个token提交到Outlook注册页的对应字段,否则解完验证码也无法完成验证流程。
  • 移除不必要的固定sleep:TwoCaptcha的solve_funcaptcha方法默认会自动轮询等待求解完成,手动设置90秒sleep完全多余,还可能导致流程异常。

修正后的示例代码:

from twocaptcha import TwoCaptcha

# 替换为你的TwoCaptcha有效API密钥
api_key = "你的API密钥"
solver = TwoCaptcha(api_key)

# 可选:检查账户余额,确认API密钥有效
balance = solver.balance()
print(f"账户余额: {balance}")

try:
    # 求解Funcaptcha获取验证token
    result = solver.funcaptcha(
        sitekey='B7D8911C-5CC8-A9A3-35B0-554ACEE604DA',
        url='https://signup.live.com/signup'
    )
    # 需将result['code']提交到Outlook注册页的对应验证字段
    print(f"验证Token: {result['code']}")
except Exception as e:
    print(f"求解失败: {str(e)}")

额外注意:

  • 确保TwoCaptcha账户有足够余额,否则无法发起求解请求。
  • Outlook的Funcaptcha可能会校验请求的UA、IP环境,建议模拟真实浏览器的请求参数提交token。
  • 定期确认Outlook注册页的sitekey是否更新,避免使用过期的sitekey。

内容的提问来源于stack exchange,提问作者Sorker Limon

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.24 23:42:16