Skip to content

RC-3476-min-max-clicks #122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion examples/coordinates_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 4 additions & 0 deletions twocaptcha/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down