INNER CODE UNIT · Python
bypass_cloudflare
1837620622/cloudflare-bypass-2026 · bypass.py:121
def bypass_cloudflare(
url: str,
proxy: Optional[str] = None,
timeout: float = 60.0,
save_cookies: bool = True,
reconnect_time: float = 5.0,
incognito: bool = False,
) -> Dict[str, Any]:
"""
绕过 Cloudflare 验证并获取 Cookie(单浏览器 UC Mode)
参数:
url: 目标网站 URL
proxy: 代理地址(可选,格式: http://host:port)
timeout: 整体超时时间(秒),含打开页面与点击重试
save_cookies: 是否保存 Cookie 到文件
reconnect_time: uc_open_with_reconnect 断连时长
incognito: 是否无痕模式(部分站点需要)