Skip to content

Commit 24dc39e

Browse files
authored
Merge pull request #112 from 2captcha/RC-2670-add-img-type-parameter
RC-2670-add-img-type-parameter
2 parents 20d3f59 + a99b955 commit 24dc39e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

twocaptcha/solver.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,8 @@ def capy(self, sitekey, url, **kwargs):
383383
def grid(self, file, **kwargs):
384384
'''Wrapper for solving grid captcha (image).
385385
386-
Required:
386+
Parameters
387+
__________
387388
file : file
388389
Captcha image file. * required if you submit image as a file (method=post).
389390
body : str
@@ -398,6 +399,14 @@ def grid(self, file, **kwargs):
398399
Number of rows in reCAPTCHA grid.
399400
cols : itn, optional
400401
Number of columns in reCAPTCHA grid.
402+
img_type : str, optional
403+
The type of captcha to solve. Supported values:
404+
- funcaptcha: FunCaptcha where you need to click the correct square.
405+
- funcaptcha_compare: FunCaptcha where you select the square using arrows.
406+
- recaptcha: reCAPTCHA.
407+
- hcaptcha: hCaptcha.
408+
Important: You must also provide the textinstructions parameter with the original instructions in English,
409+
and send the original image files, not screenshots.
401410
previousId : str, optional
402411
Id of your previous request with the same captcha challenge.
403412
canSkip : int, optional

0 commit comments

Comments
 (0)