Skip to content

Commit 4469b21

Browse files
Fix spelling and grammar mistakes in README + more (#89)
- Fixed multiple spelling mistakes and grammar issues - Fixed missing/incorrect words - Updated some sentence structures All non-breaking changes. Co-authored-by: Victor <kratzky@gmail.com>
1 parent fc77eba commit 4469b21

File tree

1 file changed

+35
-25
lines changed

1 file changed

+35
-25
lines changed

README.md

Lines changed: 35 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ The easiest way to quickly integrate the 2Captcha captcha-solving service into y
4343

4444
This package can be installed with Pip:
4545

46-
```pip3 install 2captcha-python```
46+
```bash
47+
pip3 install 2captcha-python
48+
```
4749

4850

4951
## Configuration
@@ -55,7 +57,7 @@ from twocaptcha import TwoCaptcha
5557

5658
solver = TwoCaptcha('YOUR_API_KEY')
5759
```
58-
Also there are a few options that can be configured:
60+
Also, there are a few options that can be configured:
5961

6062
```python
6163
config = {
@@ -75,37 +77,39 @@ solver = TwoCaptcha(**config)
7577
| Option | Default value | Description |
7678
| ---------------- | -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
7779
| server | `2captcha.com` | API server. You can set it to `rucaptcha.com` if your account is registered there |
78-
| softId | - | your software ID obtained after publishing in [2captcha sofware catalog] |
79-
| callback | - | URL of your web-sever that receives the captcha recognition result. The URl should be first registered in [pingback settings] of your account |
80-
| defaultTimeout | 120 | Polling timeout in seconds for all captcha types except reCAPTCHA. Defines how long the module tries to get the answer from `res.php` API endpoint |
81-
| recaptchaTimeout | 600 | Polling timeout for reCAPTCHA in seconds. Defines how long the module tries to get the answer from `res.php` API endpoint |
82-
| pollingInterval | 10 | Interval in seconds between requests to `res.php` API endpoint, setting values less than 5 seconds is not recommended |
80+
| softId | - | your software ID obtained after publishing in [2captcha software catalog] |
81+
| callback | - | URL of your web server that receives the captcha recognition result. The URL should be first registered in [pingback settings] of your account |
82+
| 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 |
83+
| recaptchaTimeout | 600 | Polling timeout for reCAPTCHA in seconds. Defines how long the module tries to get the answer from the `res.php` API endpoint |
84+
| pollingInterval | 10 | Interval in seconds between requests to the `res.php` API endpoint. Setting values less than 5 seconds is not recommended |
8385

84-
> **IMPORTANT:** once `callback` is defined for `TwoCaptcha` instance, all methods return only the captcha ID and DO NOT poll the API to get the result. The result will be sent to the callback URL.
86+
> **IMPORTANT:** Once `callback` is defined for the `TwoCaptcha` instance, all methods return only the captcha ID and DO NOT poll the API to get the result. The result will be sent to the callback URL.
8587
To get the answer manually use [get_result method](#send--get_result)
8688

8789
## Solve captcha
88-
When you submit any image-based captcha use can provide additional options to help 2captcha workers to solve it properly.
90+
When you submit any image-based CAPTCHA, you can provide additional options to help 2captcha workers solve it properly.
8991

9092
### Captcha options
9193
| Option | Default Value | Description |
9294
| ------------- | ------------- | -------------------------------------------------------------------------------------------------- |
93-
| numeric | 0 | Defines if captcha contains numeric or other symbols [see more info in the API docs][post options] |
94-
| minLen | 0 | minimal answer lenght |
95+
| numeric | 0 | Defines if the captcha contains numeric or other symbols [see more info in the API docs][post options] |
96+
| minLen | 0 | minimal answer length |
9597
| maxLen | 0 | maximum answer length |
9698
| phrase | 0 | defines if the answer contains multiple words or not |
9799
| caseSensitive | 0 | defines if the answer is case sensitive |
98100
| calc | 0 | defines captcha requires calculation |
99-
| lang | - | defines the captcha language, see the [list of supported languages] |
100-
| hintImg | - | an image with hint shown to workers with the captcha |
101+
| lang | - | defines the captcha language; see the [list of supported languages] |
102+
| hintImg | - | an image with a hint shown to workers with the captcha |
101103
| hintText | - | hint or task text shown to workers with the captcha |
102104

103-
Below you can find basic examples for every captcha type. Check out [examples directory] to find more examples with all available options.
105+
Below, you can find basic examples for every captcha type. Check out [examples directory] for more examples with all available options.
104106

105107
### Normal Captcha
108+
106109
<sup>[API method description.](https://2captcha.com/2captcha-api#solving_normal_captcha)</sup>
107110

108-
To bypass a normal captcha (distorted text on an image) use the following method. This method also can be used to recognize any text on the image.
111+
To bypass a normal captcha (distorted text on an image) use the following method. This method can also be used to recognize any text in an image.
112+
109113
```python
110114
result = solver.normal('path/to/captcha.jpg', param1=..., ...)
111115
# OR
@@ -116,7 +120,7 @@ result = solver.normal('https://site-with-captcha.com/path/to/captcha.jpg', para
116120

117121
<sup>[API method description.](https://2captcha.com/2captcha-api#audio)</sup>
118122

119-
To bypass an audio captcha (mp3 formats only) use the following method.
123+
Use the following method to bypass an audio captcha (mp3 formats only).
120124
You must provide the language as `lang = 'en'`. Supported languages are "en", "ru", "de", "el", "pt", "fr".
121125

122126
```python
@@ -138,7 +142,8 @@ result = solver.text('If tomorrow is Saturday, what day is today?', param1=...,
138142

139143
<sup>[API method description.](https://2captcha.com/2captcha-api#solving_recaptchav2_new)</sup>
140144

141-
Use this method to solve reCAPTCHA V2 and obtain a token to bypass the protection.
145+
Use the following method to solve reCAPTCHA V2 and obtain a token to bypass the protection.
146+
142147
```python
143148
result = solver.recaptcha(sitekey='6Le-wvkSVVABCPBMRTvw0Q4Muexq1bi0DJwx_mJ-',
144149
url='https://mysite.com/page/with/recaptcha',
@@ -298,7 +303,8 @@ result = solver.capy(sitekey='PUZZLE_Abc1dEFghIJKLM2no34P56q7rStu8v',
298303

299304
<sup>[API method description.](https://2captcha.com/2captcha-api#grid)</sup>
300305

301-
Grid method was originally called the Old reCAPTCHA V2 method. The method can be used to bypass any type of captcha where you can apply a grid on an image and click specific grid boxes. Returns numbers of boxes.
306+
The grid method was originally called the Old reCAPTCHA V2 method. The method can be used to bypass any type of captcha where you can apply a grid on an image and click specific grid boxes. Returns numbers of boxes.
307+
302308
```python
303309
result = solver.grid('path/to/captcha.jpg', param1=..., ...)
304310
```
@@ -307,7 +313,8 @@ result = solver.grid('path/to/captcha.jpg', param1=..., ...)
307313

308314
<sup>[API method description.](https://2captcha.com/2captcha-api#canvas)</sup>
309315

310-
Canvas method can be used when you need to draw a line around an object on an image. Returns a set of points' coordinates to draw a polygon.
316+
The canvas method can be used when you need to draw a line around an object on an image. Returns a set of points' coordinates to draw a polygon.
317+
311318
```python
312319
result = solver.canvas('path/to/captcha.jpg', param1=..., ...)
313320
```
@@ -316,7 +323,8 @@ result = solver.canvas('path/to/captcha.jpg', param1=..., ...)
316323

317324
<sup>[API method description.](https://2captcha.com/2captcha-api#coordinates)</sup>
318325

319-
ClickCaptcha method returns coordinates of points on the captcha image. Can be used if you need to click on particular points in the image.
326+
The ClickCaptcha method returns the coordinates of points on the captcha image. It can be used if you need to click on particular points in the image.
327+
320328
```python
321329
result = solver.coordinates('path/to/captcha.jpg', param1=..., ...)
322330
```
@@ -325,7 +333,8 @@ result = solver.coordinates('path/to/captcha.jpg', param1=..., ...)
325333

326334
<sup>[API method description.](https://2captcha.com/2captcha-api#solving_rotatecaptcha)</sup>
327335

328-
This method can be used to solve a captcha that asks to rotate an object. Mostly used to bypass FunCaptcha. Returns the rotation angle.
336+
This method can be used to solve a captcha that asks to rotate an object. It is mostly used to bypass FunCaptcha. Returns the rotation angle.
337+
329338
```python
330339
result = solver.rotate('path/to/captcha.jpg', param1=..., ...)
331340
```
@@ -440,11 +449,12 @@ except TimeoutException as e:
440449

441450
### Proxies
442451

443-
You can pass your proxy as an additional argument for methods: recaptcha, funcaptcha, geetest, geetest v4, hcaptcha,
444-
keycaptcha, capy puzzle, lemin, atbcaptcha, turnstile, tencent, amazon waf, mtcaptcha, friendly captcha, cutcaptcha.
452+
You can pass your proxy as an additional argument for the following methods: recaptcha, funcaptcha, geetest, geetest v4, hcaptcha,
453+
keycaptcha, capy puzzle, lemin, atbcaptcha, turnstile, amazon waf, mtcaptcha, friendly captcha, cutcaptcha.
454+
445455
The proxy will be forwarded to the API to solve the captcha.
446456

447-
We have our own proxies that we can offer you. [Buy residential proxies] for avoid restrictions and blocks. [Quick start].
457+
We have our own proxies that we can offer you. [Buy residential proxies] to avoid restrictions and blocks. [Quick start].
448458

449459
```python
450460
proxy={
@@ -475,7 +485,7 @@ captcha_result = asyncio.run(captchaSolver(image))
475485
## Examples
476486
Examples of solving all supported captcha types are located in the [examples] directory.
477487

478-
488+
### Useful links
479489
[2Captcha]: https://2captcha.com/
480490
[2captcha sofware catalog]: https://2captcha.com/software
481491
[pingback settings]: https://2captcha.com/setting/pingback

0 commit comments

Comments
 (0)