Skip to content

Commit 65adf1e

Browse files
committed
- Added links to balance and report methods.
- Added text to the Error handling block. - Added a block of Userful articles. Signed-off-by: Maxim S <poplers24@gmail.com>
1 parent 897334f commit 65adf1e

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

README.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,11 @@ result = solver.mtcaptcha(sitekey='MTPublic-KzqLY1cKH',
355355
<sup>[API method description.](https://2captcha.com/2captcha-api#friendly-captcha)</sup>
356356

357357
Friendly Captcha solving method. Returns a token.
358+
359+
360+
361+
> **Important:** To successfully use the received token, the captcha widget must not be loaded on the page. To do this, you need to abort request to `/friendlycaptcha/...module.min.js` on the page. When the captcha widget is already loaded on the page, there is a high probability that the received token will not work.
362+
358363
```python
359364
result = solver.friendly_captcha(sitekey='FCMGEMUD2KTDSQ5H',
360365
url='https://friendlycaptcha.com/demo',
@@ -415,20 +420,27 @@ code = solver.get_result(id)
415420
```
416421

417422
### balance
423+
424+
<sup>[API method description.](https://2captcha.com/2captcha-api#additional-methods)</sup>
425+
418426
Use this method to get your account's balance
419427
```python
420428
balance = solver.balance()
421429
```
422430

423431
### report
432+
433+
<sup>[API method description.](https://2captcha.com/2captcha-api#complain)</sup>
434+
424435
Use this method to report good or bad captcha answers.
425436
```python
426437
solver.report(id, True) # captcha solved correctly
427438
solver.report(id, False) # captcha solved incorrectly
428439
```
429440

430441
### Error handling
431-
In case of an error, the captcha solver throws an exception. It's important to properly handle these cases. We recommend using `try except` to handle exceptions.
442+
In case of an error, the captcha solver throws an exception. It's important to properly handle these cases. We recommend using `try except` to handle exceptions.
443+
The list of all errors can be found in the [API documentation](https://2captcha.com/2captcha-api#list-of-inphp-errors).
432444
```python
433445
try:
434446
result = solver.text('If tomorrow is Saturday, what day is today?')
@@ -482,9 +494,14 @@ async def captchaSolver(image):
482494

483495
captcha_result = asyncio.run(captchaSolver(image))
484496
```
485-
## Examples
497+
### Examples
486498
Examples of solving all supported captcha types are located in the [examples] directory.
487499

500+
## Useful articles
501+
502+
- Amazon captcha solver: Code example for bypassing the [Amazon captcha](https://2captcha.com/blog/amazon-captcha-solving)
503+
- [Captcha bypass in Selenium](https://2captcha.com/blog/captcha-bypass-in-selenium)
504+
488505
<!-- Shared links for README.md -->
489506
[2Captcha]: https://2captcha.com/
490507
[2captcha software catalog]: https://2captcha.com/software

0 commit comments

Comments
 (0)