From d7ff556c472e21118751d8f75916026c6223577f Mon Sep 17 00:00:00 2001 From: Maxim S Date: Tue, 11 Mar 2025 11:13:09 +0100 Subject: [PATCH] - The parameters are added to the documentation to the method in Solver.py - The parameters are added to the expanded method of coordinates_options.py Signed-off-by: Maxim S --- examples/coordinates_options.py | 4 +++- twocaptcha/solver.py | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/coordinates_options.py b/examples/coordinates_options.py index 91f6000..e88c8ab 100644 --- a/examples/coordinates_options.py +++ b/examples/coordinates_options.py @@ -19,7 +19,9 @@ result = solver.coordinates('./images/grid_2.jpg', lang='en', hintImg='./images/grid_hint.jpg', - hintText='Select all images with an Orange') + hintText='Select all images with an Orange', + min_clicks=2, + max_clicks=3) except Exception as e: sys.exit(e) diff --git a/twocaptcha/solver.py b/twocaptcha/solver.py index af7b6b5..b6f9f1c 100755 --- a/twocaptcha/solver.py +++ b/twocaptcha/solver.py @@ -492,6 +492,10 @@ def coordinates(self, file, **kwargs): instruction as text with textinstructions. lang : str, optional Language code. See the list of supported languages https://2captcha.com/2captcha-api#language. + min_clicks : int, optional + The minimum number of clicks that need to be done. + max_clicks : int, optional + The maximum number of clicks that can be done. softId : int, optional ID of software developer. Developers who integrated their software with 2Captcha get reward: 10% of spendings of their software users.