Matthew17-21 / Captcha-Tools

All-in-one Python (And now Go!) module to help solve captchas with Capmonster, 2captcha, Anticaptcha, and Capsolver API's!
MIT License
63 stars 7 forks source link

question #19

Closed geiercsaba closed 11 months ago

geiercsaba commented 11 months ago

harvester = new_harvester( api_key="CHANGE THIS", solving_site="capsolver", captcha_type="v2", sitekey="6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-", captcha_url="https://www.google.com/recaptcha/api2/demo" ) Its just a basic question about rechaptha if i use this to solve rechaptcha v2, how the service know the task, when i only provide information about the site, and nothing about the current session or something.

Matthew17-21 commented 11 months ago

Hmm not sure if I understand the question.

9/10 times you don't need to pass the session/cookies to the service because obtaining a recaptcha token is independent from the session. There are, in rare cases, where you might need to pass in the cookies to get a better recaptcha score. But most times, you don't need to.

geiercsaba commented 11 months ago

sorry. its little hard to explain it in english. but you said rechaptcha token. You dont mention about token. I only have to pass api key(for capsolver), sitekey for the target website which is the same every time(if i got it right) and the url. how will it be unique

Matthew17-21 commented 11 months ago

The token is what gets returned from the service (token = solved captcha).

Each token is unique.

I'd highly suggest taking a look into how recaptcha and similar captchas work. This first paragraph is basically a TLDR.