Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
solve recaptcha in python
#1
Hi , i am new to python so sorry :)

i need python code for this :



This method allows you to solve any captcha that requires clicking on images, like Shapchat's Ghost Captcha, ReCaptcha V2, ASIRRA, etc.

To solve any ClickCaptcha you have to:

Get an image and an instruction that tells you what to click.

Submit a HTTP POST request to our API URL: https://2captcha.com/in.php providing coordinatescaptcha parameter set to 1.
Server accepts images in multipart or base64 format.

You can provide instruction as text using textinstructions parameter, but it's not obligatory if the instruction is already indicated on the image.

The full list of parameters is in the table below.

Server will return captcha ID or an error code if something went wrong.

Make a 5 seconds timeout and submit a HTTP GET request to our API URL: https://2captcha.com/res.php to get the result.

If captcha is already solved server will return the answer with coordinates of points where you have to click, for example: OK|coordinate:x=39,y=59;x=252,y=72. Where the point with x=0,y=0 is the upper left corner of the image.

If captcha is not solved yet server will return CAPCHA_NOT_READY result. Repeat your request in 5 seconds.

If something went wrong server will return an error code.

You simulate clicks on coordinates from the answer.

Multipart sample form for ClickCaptcha

<form method="post" action="https://2captcha.com/in.php" enctype="multipart/form-data">
<input type="hidden" name="method" value="post">
<input type="hidden" name="coordinatescaptcha" value="1">
Your key:
<input type="text" name="key" value="YOUR_APIKEY">
ClickCaptcha file:
<input type="file" name="file">
Instruction:
<input type="text" name="textinstructions" value="Click on ghosts">
<input type="submit" value="Upload and get the ID">
</form>
Reply
#2
You can try this
http://scraping.pro/2captcha-service-to-...captcha-2/

or this:
https://github.com/theriley106/outCaptcha
Recommended Tutorials:
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020