Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] #165

Closed
floconacs opened this issue Aug 31, 2022 · 11 comments
Closed

[Question] #165

floconacs opened this issue Aug 31, 2022 · 11 comments
Labels
fixed BUG 已修复或问题已解决

Comments

@floconacs
Copy link

Hello, I have no error but the script crashes, I have not modified the source code but just added to my private project.
The captcha solver is called at the end to solve a captcha.

Here is the error:
C:\Users\user\Desktop\discord>python account.py

DevTools listening on ws://127.0.0.1:1089/devtools/browser/70f17e73-3f59-4ffb-a093-195fd79dfa61
[19060:15084:0831/182935.625:ERROR:device_event_log_impl.cc(214)] [18:29:35.626] Bluetooth: bluetooth_adapter_winrt.cc:1074 Getting default adapter failed.
2022-08-31 18:29:45 | DEBUG - >> Challenge [ArmorCaptcha] Handle hCaptcha checkbox
2022-08-31 18:29:47 | DEBUG - >> Challenge [ArmorCaptcha] Get label - label=「Please click on each image containing a lion with closed eyes.」
2022-08-31 18:29:47 | DEBUG - >> Challenge [ArmorCaptcha] Download challenge images - timeit=0.2s
2022-08-31 18:29:48 | WARNING - >> ALERT [ArmorCaptcha] Types of challenges not yet scheduled - label=「Please click on each image containing a lion with closed eyes.」 prompt=「Please click on each image containing a lion with closed eyes.」 screenshot=C:\Usersuser\Desktop\discord\database\temp_cache\captcha_schot\1661963387. Please click on each image containing a lion with closed eyes..png site_link=https://discord.com/register issues=https://github.com/QIN2DIM/hcaptcha-challenger/issues?q=Veuillez%20cliquer%20sur%20chaque%20image%20contenant%20un%20lion%20aux%20yeux%20ferm%C3%A9s.

C:\Users\user\Desktop\discord>

I enclose an extra picture.

image

@QIN2DIM
Copy link
Owner

QIN2DIM commented Aug 31, 2022

challenger does not support FR, try to reset --lang=en

@floconacs
Copy link
Author

I live in France, how to change the country with which the captcha is based?

@QIN2DIM
Copy link
Owner

QIN2DIM commented Aug 31, 2022

how do you call challegner?

lang: Optional[str] = "zh",

@floconacs
Copy link
Author

and so I change the zh to en ?

@QIN2DIM
Copy link
Owner

QIN2DIM commented Aug 31, 2022

Your code is closed source, I can only guess.😂👌

@floconacs
Copy link
Author

he uses selenium, just tell me what I can add to make him take the "en" language

@QIN2DIM
Copy link
Owner

QIN2DIM commented Aug 31, 2022

os.environ["LANGUAGE"] = "zh_CN" if lang is None else lang
options.add_argument(f"--lang={os.getenv('LANGUAGE')}")

@QIN2DIM QIN2DIM closed this as completed Aug 31, 2022
@QIN2DIM QIN2DIM added the fixed BUG 已修复或问题已解决 label Aug 31, 2022
@floconacs
Copy link
Author

je copie sa tout en haut de mon script selenium principal ?

@QIN2DIM
Copy link
Owner

QIN2DIM commented Aug 31, 2022

def get_challenge_ctx(silence: Optional[bool] = None, lang: Optional[str] = None):

@floconacs
Copy link
Author

I changed everything in "fr" I test and I tell you

@floconacs
Copy link
Author

cela ne marche toujours pas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed BUG 已修复或问题已解决
Projects
None yet
Development

No branches or pull requests

2 participants