- Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Copy pathraw_cf.py
14 lines (12 loc) · 547 Bytes
/
raw_cf.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""SB Manager using UC Mode & PyAutoGUI for bypassing CAPTCHAs."""
fromseleniumbaseimportSB
withSB(uc=True, test=True, locale="en") assb:
url="https://www.cloudflare.com/login"
sb.uc_open_with_reconnect(url, 5.5)
sb.uc_gui_handle_captcha() # PyAutoGUI press Tab and Spacebar
sb.sleep(2.5)
withSB(uc=True, test=True, locale="en") assb:
url="https://www.cloudflare.com/login"
sb.uc_open_with_reconnect(url, 5.5)
sb.uc_gui_click_captcha() # PyAutoGUI click. (Linux needs it)
sb.sleep(2.5)