Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Official best practice / advice for flaky captchas? #3598

SebastienBolh started this conversation in General
Discussion options

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.

You must be logged in to vote

Replies: 1 comment

Comment options

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.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /