Skip to content

Commit 33f2189

Browse files
author
Mark Miller
committed
fix twocaptcha init
1 parent c15862b commit 33f2189

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ result = solver.keycaptcha(s_s_c_user_id=10,
160160
Token-based method to bypass Capy puzzle captcha.
161161
```python
162162
result = solver.capy(sitekey='PUZZLE_Abc1dEFghIJKLM2no34P56q7rStu8v',
163-
url='http://mysite.com/',
163+
url='http://mysite.com/',
164+
api_server='https://jp.api.capy.me/',
164165
param1=..., ...)
165166
```
166167
### Grid

examples/capy_options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
try:
1212
result = solver.capy(sitekey='PUZZLE_Cz04hZLjuZRMYC3ee10C32D3uNms5w',
1313
url='https://www.mysite.com/captcha/',
14-
api_server="https://capy.me/",
14+
api_server="https://jp.api.capy.me/",
1515
softId=33112)
1616

1717
except Exception as e:

twocaptcha/solver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ class TimeoutException(SolverExceptions):
3232

3333
class TwoCaptcha():
3434
def __init__(self,
35-
API_KEY,
35+
apiKey,
3636
softId=None,
3737
callback=None,
3838
defaultTimeout=120,
3939
recaptchaTimeout=600,
4040
pollingInterval=10):
4141

42-
self.API_KEY = API_KEY
42+
self.API_KEY = apiKey
4343
self.soft_id = softId
4444
self.callback = callback
4545
self.default_timeout = defaultTimeout

0 commit comments

Comments
 (0)