From a99b955bd77cee97cd14991170ce80b3d6b2b590 Mon Sep 17 00:00:00 2001 From: Maxim S Date: Tue, 17 Sep 2024 14:41:21 +0200 Subject: [PATCH] - Added description of img_type parameter for grid method in solver.py Signed-off-by: Maxim S --- twocaptcha/solver.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/twocaptcha/solver.py b/twocaptcha/solver.py index 928eaa2..0046415 100755 --- a/twocaptcha/solver.py +++ b/twocaptcha/solver.py @@ -381,7 +381,8 @@ def capy(self, sitekey, url, **kwargs): def grid(self, file, **kwargs): '''Wrapper for solving grid captcha (image). - Required: + Parameters + __________ file : file Captcha image file. * required if you submit image as a file (method=post). body : str @@ -396,6 +397,14 @@ def grid(self, file, **kwargs): Number of rows in reCAPTCHA grid. cols : itn, optional Number of columns in reCAPTCHA grid. + img_type : str, optional + The type of captcha to solve. Supported values: + - funcaptcha: FunCaptcha where you need to click the correct square. + - funcaptcha_compare: FunCaptcha where you select the square using arrows. + - recaptcha: reCAPTCHA. + - hcaptcha: hCaptcha. + Important: You must also provide the textinstructions parameter with the original instructions in English, + and send the original image files, not screenshots. previousId : str, optional Id of your previous request with the same captcha challenge. canSkip : int, optional