forked from 2captcha/2captcha-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkeycaptcha_options.py
More file actions
28 lines (17 loc) · 911 Bytes
/
keycaptcha_options.py
File metadata and controls
28 lines (17 loc) · 911 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import sys
'../../' in sys.path or sys.path.append('../../')
from twocaptcha import TwoCaptcha
sol = TwoCaptcha('YOUR_API_KEY', defaultTimeout=120)
try:
result = sol.keycaptcha(s_s_c_user_id = 10,
s_s_c_session_id = '493e52c37c10c2bcdf4a00cbc9ccd1e8',
s_s_c_web_server_sign = '9006dc725760858e4c0715b835472f22-pz-',
s_s_c_web_server_sign2 = '2ca3abe86d90c6142d5571db98af6714',
url = 'https://www.keycaptcha.ru/demo-magnetic/',
proxy = {
'type': 'HTTPS',
'uri': 'login:password@IP_address:PORT'})
except Exception as e:
sys.exit(e)
else:
sys.exit('solved: ' + str(result))