Skip to content

Commit 20d3f59

Browse files
Merge pull request #122 from 2captcha/RC-3476-min-max-clicks
RC-3476-min-max-clicks
2 parents 65ea700 + d7ff556 commit 20d3f59

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

examples/coordinates_options.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
result = solver.coordinates('./images/grid_2.jpg',
2020
lang='en',
2121
hintImg='./images/grid_hint.jpg',
22-
hintText='Select all images with an Orange')
22+
hintText='Select all images with an Orange',
23+
min_clicks=2,
24+
max_clicks=3)
2325
except Exception as e:
2426
sys.exit(e)
2527

twocaptcha/solver.py

+4
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,10 @@ def coordinates(self, file, **kwargs):
492492
instruction as text with textinstructions.
493493
lang : str, optional
494494
Language code. See the list of supported languages https://2captcha.com/2captcha-api#language.
495+
min_clicks : int, optional
496+
The minimum number of clicks that need to be done.
497+
max_clicks : int, optional
498+
The maximum number of clicks that can be done.
495499
softId : int, optional
496500
ID of software developer. Developers who integrated their software with 2Captcha get reward: 10% of
497501
spendings of their software users.

0 commit comments

Comments
 (0)