diff --git a/README.md b/README.md index cb17190..6429075 100644 --- a/README.md +++ b/README.md @@ -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 . . . . . @@ -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) ``` diff --git a/twocaptcha/solver.py b/twocaptcha/solver.py index 038751b..e40f0ff 100755 --- a/twocaptcha/solver.py +++ b/twocaptcha/solver.py @@ -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 """