Skip to content

Commit

Permalink
Merge pull request #96 from 2captcha/RC-2738-update-description-send-…
Browse files Browse the repository at this point in the history
…get-result

RC-2738-update-description-send-get-result
  • Loading branch information
kratzky authored Jun 17, 2024
2 parents 5a44778 + ca60a35 commit c536a88
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,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 @@ -319,6 +323,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

0 comments on commit c536a88

Please sign in to comment.