Skip to content

Commit c536a88

Browse files
authored
Merge pull request #96 from 2captcha/RC-2738-update-description-send-get-result
RC-2738-update-description-send-get-result
2 parents 5a44778 + ca60a35 commit c536a88

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,11 @@ result = solver.tencent(app_id="197326679",
310310
## Other methods
311311

312312
### send / get_result
313-
These methods can be used for manual captcha submission and answer polling.
313+
These methods can be used for manual captcha submission and answer polling. The `send()` method supports sending any captcha
314+
type, to specify the captcha type you must send value `method` manually, for example `method='hcaptcha'` for solving hCapthca.
315+
You can find the value of the `method` parameter in the [API documentation](https://2captcha.com/2captcha-api).
316+
317+
Example for solving Normal captcha manually:
314318
```python
315319
import time
316320
. . . . .
@@ -319,6 +323,17 @@ import time
319323
id = solver.send(file='path/to/captcha.jpg')
320324
time.sleep(20)
321325

326+
code = solver.get_result(id)
327+
```
328+
Example for solving hCaptcha manually:
329+
```python
330+
import time
331+
. . . . .
332+
id = solver.send(sitekey='41b778e7-8f20-45cc-a804-1f1ebb45c579',
333+
url='https://2captcha.com/demo/hcaptcha?difficulty=easy',
334+
method='hcaptcha')
335+
print(id)
336+
time.sleep(20)
322337
code = solver.get_result(id)
323338
```
324339

twocaptcha/solver.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,8 +879,10 @@ def send(self, **kwargs):
879879
880880
Parameters
881881
_________
882+
method : str
883+
The name of the method must be found in the documentation https://2captcha.com/2captcha-api
882884
kwargs: dict
883-
885+
All captcha params
884886
Returns
885887
886888
"""

0 commit comments

Comments
 (0)