Skip to content

Commit a99b955

Browse files
committed
- Added description of img_type parameter for grid method in solver.py
Signed-off-by: Maxim S <[email protected]>
1 parent 9e9cac6 commit a99b955

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

twocaptcha/solver.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,8 @@ def capy(self, sitekey, url, **kwargs):
381381
def grid(self, file, **kwargs):
382382
'''Wrapper for solving grid captcha (image).
383383
384-
Required:
384+
Parameters
385+
__________
385386
file : file
386387
Captcha image file. * required if you submit image as a file (method=post).
387388
body : str
@@ -396,6 +397,14 @@ def grid(self, file, **kwargs):
396397
Number of rows in reCAPTCHA grid.
397398
cols : itn, optional
398399
Number of columns in reCAPTCHA grid.
400+
img_type : str, optional
401+
The type of captcha to solve. Supported values:
402+
- funcaptcha: FunCaptcha where you need to click the correct square.
403+
- funcaptcha_compare: FunCaptcha where you select the square using arrows.
404+
- recaptcha: reCAPTCHA.
405+
- hcaptcha: hCaptcha.
406+
Important: You must also provide the textinstructions parameter with the original instructions in English,
407+
and send the original image files, not screenshots.
399408
previousId : str, optional
400409
Id of your previous request with the same captcha challenge.
401410
canSkip : int, optional

0 commit comments

Comments
 (0)