Skip to content
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

RC-2738-update-description-send-get-result #96

Merged
merged 1 commit into from
Jun 17, 2024
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
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,11 @@ result = solver.tencent(app_id="197326679",
## Other methods

### send / get_result
These methods can be used for manual captcha submission and answer polling.
These methods can be used for manual captcha submission and answer polling. The `send()` method supports sending any captcha
type, to specify the captcha type you must send value `method` manually, for example `method='hcaptcha'` for solving hCapthca.
You can find the value of the `method` parameter in the [API documentation](https://2captcha.com/2captcha-api).

Example for solving Normal captcha manually:
```python
import time
. . . . .
Expand All @@ -318,6 +322,17 @@ import time
id = solver.send(file='path/to/captcha.jpg')
time.sleep(20)

code = solver.get_result(id)
```
Example for solving hCaptcha manually:
```python
import time
. . . . .
id = solver.send(sitekey='41b778e7-8f20-45cc-a804-1f1ebb45c579',
url='https://2captcha.com/demo/hcaptcha?difficulty=easy',
method='hcaptcha')
print(id)
time.sleep(20)
code = solver.get_result(id)
```

Expand Down
4 changes: 3 additions & 1 deletion twocaptcha/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,8 +879,10 @@ def send(self, **kwargs):

Parameters
_________
method : str
The name of the method must be found in the documentation https://2captcha.com/2captcha-api
kwargs: dict

All captcha params
Returns

"""
Expand Down