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

checking cloudflare recaptcha detects selenium #3301

krzysztofkub started this conversation in General
Discussion options

Hi,

I use seleniumbase version:4.33.1 on windows

This is my code:

import sys
from seleniumbase import SB
from PIL import Image
import io
import requests
import time
import subprocess
import winsound
def vote():
 with SB(uc=True, test=True, incognito=True) as sb:
 url = "https://www.xtremetop100.com/in.php?site=1132376426"
 sb.uc_open_with_reconnect(url)
 resolve_captcha(sb)
def resolve_captcha(sb):
 # resolve image captcha manually
 time.sleep(10)
 
 button_element = 'input[name="ticki"]'
 sb.reconnect(0.1)
 sb.uc_click(button_element, reconnect_time=4)
 sb.uc_gui_click_captcha()
 sb.wait_for_text_not_visible("Checking", timeout=12)
 time.sleep(10)
if __name__ == "__main__":
 vote()

So when you enter https://www.xtremetop100.com/in.php?site=1132227942, you need to put code from image manually. Then script clicks button to send form and page with cloudflare recaptcha shows up. When I click it manually it works fine. But when I use sb.uc_gui_click_captcha() looks like server detects that it's not human

Could you help me please?

Thanks

You must be logged in to vote

Replies: 2 comments

Comment options

I've changed my code a little bit (updated snippet) to be more similar to the examples

You must be logged in to vote
0 replies
Comment options

I wonder if it's a specific browser (Chrome) or all other are affected too?

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 によって変換されたページ (->オリジナル) /