CaptchaSolver
#320
-
When trying to use the CaptchaSolver class with a third party captchasolver (2captcha) I need to pass the site url. Any idea where I get this url? Here is the code I'm using: class CaptchaSolver(discord.CaptchaHandler):
async def fetch_token(self, data: dict, proxy: str, proxy_auth: aiohttp.BasicAuth) -> str:
api_key = os.getenv('APIKEY_2CAPTCHA', 'YOUR_API_KEY')
solver = TwoCaptcha(api_key)
result = solver.hcaptcha(
sitekey=data['captcha_sitekey'],
url='SITE_URL??',
)
return result And in the data object I'm getting 'You need to update your app to join this server' for the captcha_key. Idk if this also is a problem but I suppose it's not very good. {'captcha_key': ['You need to update your app to join this server.'], 'captcha_sitekey': 'a9b5fb07-92ff-493f-86fe-352a2803b3df', 'captcha_service': 'hcaptcha', 'captcha_rqdata': 'FxfkNaHK3WmFqC7abKPLldwT0YzAGoEp+2xW3kQVb4kpGR0OrnpMrikBsL5INY2pwnBC0gJdkRFKsuoYodcOm5j++rR0pYvpEPN5E9UqNoa6DRGv1TBAzAkJVkdv4mxs+SthrRCCYSAx80W6gBsxrij3UlSLLHaIX7jLZEIv', 'captcha_rqtoken': 'IkRtLzNvenBsdVBOVVNQa1VXbUtZRk04V01LTnh6U2trL3hVbVhRTVdGZDR0Tmg2ZjR2blBjdi9zWEk4STgvL2hCRU1GUWc9PVRMbGlsdm9MdnNsVlJOWmMi.YsWJ6g.Vd0VBJeCa2BevJbYrgWxDYWaoSo'} Thanks for any help :) |
Beta Was this translation helpful? Give feedback.
Answered by
dolfies
Jul 6, 2022
Replies: 1 comment 8 replies
-
|
Beta Was this translation helpful? Give feedback.
8 replies
Answer selected by
5t0n1e
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://discord.com/channels/@me
.