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
Copy file name to clipboardExpand all lines: README.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,20 +43,22 @@ Also there are few options that can be configured:
43
43
44
44
```python
45
45
config = {
46
-
'apiKey': 'YOUR_API_KEY',
47
-
'softId': 123,
48
-
'callback': 'https://your.site/result-receiver',
49
-
'defaultTimeout': 120,
50
-
'recaptchaTimeout': 600,
51
-
'pollingInterval': 10,
52
-
}
46
+
'server': '2captcha.com',
47
+
'apiKey': 'YOUR_API_KEY',
48
+
'softId': 123,
49
+
'callback': 'https://your.site/result-receiver',
50
+
'defaultTimeout': 120,
51
+
'recaptchaTimeout': 600,
52
+
'pollingInterval': 10,
53
+
}
53
54
solver = TwoCaptcha(**config)
54
55
```
55
56
56
57
### TwoCaptcha instance options
57
58
58
59
|Option|Default value|Description|
59
60
|---|---|---|
61
+
|server|`2captcha.com`|API server. You can set it to `rucaptcha.com` if your account is registered there|
60
62
|softId|-|your software ID obtained after publishing in [2captcha sofware catalog]|
61
63
|callback|-|URL of your web-sever that receives the captcha recognition result. The URl should be first registered in [pingback settings] of your account|
62
64
|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|
@@ -182,7 +184,7 @@ result = solver.coordinates('path/to/captcha.jpg', param1=..., ...)
182
184
### Rotate
183
185
This method can be used to solve a captcha that asks to rotate an object. Mostly used to bypass FunCaptcha. Returns the rotation angle.
184
186
```python
185
-
result = solver.rotate(['path/to/captcha1.jpg', 'path/to/captcha2.jpg', ...], param1=..., ...)
187
+
result = solver.rotate('path/to/captcha.jpg', param1=..., ...)
0 commit comments