-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Official best practice / advice for flaky captchas? #3598
-
Howdy!
I was wondering if anyone has advice on decreasing flakiness while avoiding unnecessary sleeps. I know from the docs theres built in waiting / sleep logic but sometimes I find that I still have to sb.sleep myself.
Examples:
- The cloudflare turnstyle is clicked and it gets an error, but about 5-10 seconds later the turnstyle resets and attempting to click it again works
- The cloudflare turnstyle checkbox appears after varying lengths of time, so I've been using sb.sleep() or calling sb.uc_gui_click_captcha() multiple times in a row (or both!)
Due to the nature of variance across sites, is it simply a matter of iterating on some simple sleep&click logic until I can get consistent results on a specific site? Is there a more 'built-in' or proven strategy I should be using?
Perhaps I could loop over a uc_gui_click_captcha then find_element on the cloudflare success element. However I don't want to get stuck in an infinite loop or quit too early before the turnstyle is beaten if I put a MAX_ITERATIONS on it.
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
Lots of good advice in this video: https://www.youtube.com/watch?v=Mr90iQmNsKM (Undetectable Automation 4)
And see the CDP Mode examples in the CDP Mode examples folder.
Beta Was this translation helpful? Give feedback.