Skip to content

Commit 58bc0f8

Browse files
committed
- Fixed README.md and removed a couple of examples on hcaptcha
Signed-off-by: Maxim S <[email protected]>
1 parent d6190f4 commit 58bc0f8

File tree

3 files changed

+4
-102
lines changed

3 files changed

+4
-102
lines changed

README.md

+4-27
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ Examples of API requests for different captcha types are available on the [Pytho
2626
- [FunCaptcha](#funcaptcha)
2727
- [GeeTest](#geetest)
2828
- [GeeTest v4](#geetest-v4)
29-
- [hCaptcha](#hcaptcha)
3029
- [Lemin Cropped Captcha](#lemin-cropped-captcha)
3130
- [Cloudflare Turnstile](#cloudflare-turnstile)
3231
- [Amazon WAF](#amazon-waf)
@@ -102,7 +101,7 @@ solver = TwoCaptcha(**config)
102101
| defaultTimeout | 120 | Polling timeout in seconds for all captcha types except reCAPTCHA. Defines how long the module tries to get the answer from the `res.php` API endpoint |
103102
| recaptchaTimeout | 600 | Polling timeout for reCAPTCHA in seconds. Defines how long the module tries to get the answer from the `res.php` API endpoint |
104103
| pollingInterval | 10 | Interval in seconds between requests to the `res.php` API endpoint. Setting values less than 5 seconds is not recommended |
105-
| extendedResponse | None | Set to `True` to get the response with additional fields or in more practical format (enables `JSON` response from `res.php` API endpoint). Suitable for [hCaptcha](#hcaptcha), [ClickCaptcha](#clickcaptcha), [Canvas](#canvas) |
104+
| extendedResponse | None | Set to `True` to get the response with additional fields or in more practical format (enables `JSON` response from `res.php` API endpoint). Suitable for [ClickCaptcha](#clickcaptcha), [Canvas](#canvas) |
106105

107106

108107
> [!IMPORTANT]
@@ -225,17 +224,6 @@ result = solver.geetest_v4(captcha_id='e392e1d7fd421dc63325744d5a2b9c73',
225224

226225
```
227226

228-
229-
### hCaptcha
230-
231-
<sup>[API method description.](https://2captcha.com/2captcha-api#solving_hcaptcha)</sup>
232-
233-
Use this method to solve the hCaptcha challenge. Returns a token to bypass the captcha.
234-
```python
235-
result = solver.hcaptcha(sitekey='10000000-ffff-ffff-ffff-000000000001',
236-
url='https://www.site.com/page/',
237-
param1=..., ...)
238-
239227
```
240228
241229
@@ -448,7 +436,7 @@ result = solver.cybersiara(master_url_id='tpjOCKjjpdzv3d8Ub2E9COEWKt1vl1Mv',
448436

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

454442
Example for solving Normal captcha manually:
@@ -460,17 +448,6 @@ import time
460448
id = solver.send(file='path/to/captcha.jpg')
461449
time.sleep(20)
462450

463-
code = solver.get_result(id)
464-
```
465-
Example for solving hCaptcha manually:
466-
```python
467-
import time
468-
. . . . .
469-
id = solver.send(sitekey='41b778e7-8f20-45cc-a804-1f1ebb45c579',
470-
url='https://2captcha.com/demo/hcaptcha?difficulty=easy',
471-
method='hcaptcha')
472-
print(id)
473-
time.sleep(20)
474451
code = solver.get_result(id)
475452
```
476453

@@ -516,7 +493,7 @@ except TimeoutException as e:
516493

517494
## Proxies
518495

519-
You can pass your proxy as an additional argument for the following methods: recaptcha, funcaptcha, geetest, geetest v4, hcaptcha,
496+
You can pass your proxy as an additional argument for the following methods: recaptcha, funcaptcha, geetest, geetest v4,
520497
keycaptcha, capy puzzle, lemin, atbcaptcha, turnstile, amazon waf, mtcaptcha, friendly captcha, cutcaptcha, Tencent, DataDome, cybersiara.
521498

522499

@@ -554,7 +531,7 @@ captcha_result = asyncio.run(captchaSolver(image))
554531
Examples of solving all supported captcha types are located in the [examples] directory.
555532

556533
## Examples using Selenium
557-
Also we have a [separate repository](https://github.com/2captcha/captcha-solver-selenium-python-examples) you can find examples of captcha solving using [Selenium](https://pypi.org/project/selenium/) library. At the moment we have implemented examples of bypassing [reCAPTCHA](https://github.com/2captcha/captcha-solver-selenium-python-examples/tree/main/examples/reCAPTCHA), [hCaptcha](https://github.com/2captcha/captcha-solver-selenium-python-examples/tree/main/examples/hCaptcha), [Cloudflare](https://github.com/2captcha/captcha-solver-selenium-python-examples/tree/main/examples/cloudflare), [Coordinates](https://github.com/2captcha/captcha-solver-selenium-python-examples/tree/main/examples/coordinates), [MTCaptcha](https://github.com/2captcha/captcha-solver-selenium-python-examples/tree/main/examples/mtcaptcha), [normal captcha](https://github.com/2captcha/captcha-solver-selenium-python-examples/tree/main/examples/normal_captcha) (image captcha) and [text captcha](https://github.com/2captcha/captcha-solver-selenium-python-examples/tree/main/examples/text_captcha) using Selenium.
534+
Also we have a [separate repository](https://github.com/2captcha/captcha-solver-selenium-python-examples) you can find examples of captcha solving using [Selenium](https://pypi.org/project/selenium/) library. At the moment we have implemented examples of bypassing [reCAPTCHA](https://github.com/2captcha/captcha-solver-selenium-python-examples/tree/main/examples/reCAPTCHA), [Cloudflare](https://github.com/2captcha/captcha-solver-selenium-python-examples/tree/main/examples/cloudflare), [Coordinates](https://github.com/2captcha/captcha-solver-selenium-python-examples/tree/main/examples/coordinates), [MTCaptcha](https://github.com/2captcha/captcha-solver-selenium-python-examples/tree/main/examples/mtcaptcha), [normal captcha](https://github.com/2captcha/captcha-solver-selenium-python-examples/tree/main/examples/normal_captcha) (image captcha) and [text captcha](https://github.com/2captcha/captcha-solver-selenium-python-examples/tree/main/examples/text_captcha) using Selenium.
558535

559536
## Useful articles
560537

examples/hcaptcha.py

-28
This file was deleted.

examples/hcaptcha_options.py

-47
This file was deleted.

0 commit comments

Comments
 (0)