INNER CODE UNIT · Python
_try_click_captcha
1837620622/cloudflare-bypass-2026 · bypass.py:66
def _try_click_captcha(sb) -> None:
"""
尝试 OS 级点击验证码。
优先 uc_gui_click_captcha(更隐蔽),失败再试 uc_gui_handle_captcha。
"""
try:
sb.uc_gui_click_captcha()
return
except Exception as e:
print(f"[!] uc_gui_click_captcha: {e}")
try:
if hasattr(sb, "uc_gui_handle_captcha"):
sb.uc_gui_handle_captcha()
except Exception as e:
print(f"[!] uc_gui_handle_captcha: {e}")
def _save_cookies(url: str, cookies_list: list, user_agent: Optional[str]) -> Path: