You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Added description of parameters to method documentation in solver.py file (#79)
- Updated the “see more info in the API docs” link in the README.md file
- Added a description of methods supporting proxies for the solution and information about whether we have our own proxy for customers in the proxies section in the README.md file
- Added extended examples amazon_waf_options.py, geetest_v4_options,.py, turnstile_options.py to examples.
- Added data parameter to hcaptcha_options.py example
- Changed the name of the sol=>solver variable in the example file keycaptcha_options.py
- Added package description to __init__.py file
Signed-off-by: Maxim S <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+20-13Lines changed: 20 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ The easiest way to quickly integrate the 2Captcha captcha-solving service into y
30
30
-[Friendly Captcha](#friendly-captcha)
31
31
-[Cutcaptcha](#cutcaptcha)
32
32
-[Other methods](#other-methods)
33
-
-[send / getResult](#send--getresult)
33
+
-[send / get_result](#send--getresult)
34
34
-[balance](#balance)
35
35
-[report](#report)
36
36
-[Error handling](#error-handling)
@@ -80,7 +80,7 @@ solver = TwoCaptcha(**config)
80
80
| pollingInterval | 10 | Interval in seconds between requests to `res.php` API endpoint, setting values less than 5 seconds is not recommended |
81
81
82
82
> **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.
83
-
To get the answer manually use [getResult method](#send--getresult)
83
+
To get the answer manually use [get_result method](#send--getresult)
84
84
85
85
## Solve captcha
86
86
When you submit any image-based captcha use can provide additional options to help 2captcha workers to solve it properly.
@@ -162,20 +162,21 @@ result = solver.geetest(gt='f1ab2cdefa3456789012345b6c78d90e',
162
162
```
163
163
164
164
165
-
### hCaptcha
166
-
Use this method to solve the hCaptcha challenge. Returns a token to bypass the captcha.
165
+
### GeeTest v4
166
+
Use this method to solve GeeTest v4. Returns the response in JSON.
167
167
```python
168
-
result = solver.hcaptcha(sitekey='10000000-ffff-ffff-ffff-000000000001',
169
-
url='https://www.site.com/page/',
168
+
result = solver.geetest_v4(captcha_id='e392e1d7fd421dc63325744d5a2b9c73',
169
+
url='https://www.site.com/page/',
170
170
param1=..., ...)
171
171
172
172
```
173
173
174
-
### GeeTest v4
175
-
Use this method to solve GeeTest v4. Returns the response in JSON.
174
+
175
+
### hCaptcha
176
+
Use this method to solve the hCaptcha challenge. Returns a token to bypass the captcha.
176
177
```python
177
-
result = solver.geetest_v4(captcha_id='e392e1d7fd421dc63325744d5a2b9c73',
178
-
url='https://www.site.com/page/',
178
+
result = solver.hcaptcha(sitekey='10000000-ffff-ffff-ffff-000000000001',
179
+
url='https://www.site.com/page/',
179
180
param1=..., ...)
180
181
181
182
```
@@ -299,7 +300,7 @@ result = solver.cutcaptcha(misery_key='ad52c87af17e2ec09b8d918c9f00416b1cb8c320'
299
300
300
301
## Other methods
301
302
302
-
### send / getResult
303
+
### send / get_result
303
304
These methods can be used for manual captcha submission and answer polling.
304
305
```python
305
306
import time
@@ -347,7 +348,11 @@ except TimeoutException as e:
347
348
348
349
### Proxies
349
350
350
-
You can pass your proxy as an additional argument for methods: recaptcha, funcaptcha and geetest. The proxy will be forwarded to the API to solve the captcha.
351
+
You can pass your proxy as an additional argument for methods: recaptcha, funcaptcha, geetest, geetest v4, hcaptcha,
0 commit comments