This repository was archived by the owner on Mar 5, 2021. It is now read-only.
File tree 3 files changed +6
-2
lines changed
3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -248,6 +248,7 @@ def submit_recaptcha(self, d):
248
248
if d .has_key ('type' ): data ['recaptchatype' ] = d ['type' ]
249
249
if d .has_key ('v3_action' ): data ['captchaaction' ] = d ['v3_action' ]
250
250
if d .has_key ('v3_min_score' ): data ['score' ] = d ['v3_min_score' ]
251
+ if d .has_key ('data-s' ): data ['data-s' ] = d ['data-s' ]
251
252
252
253
# make request with all data
253
254
response = self ._session .post (url , data = data ,
Original file line number Diff line number Diff line change @@ -37,7 +37,8 @@ def test_api():
37
37
#'v3_min_score' : .1, # optional
38
38
#'v3_action' : 'homepage', # optional
39
39
#'proxy': '126.45.34.53:345', # or 126.45.34.53:123:joe:password
40
- #'user_agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0' # optional
40
+ #'user_agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0', # optional
41
+ #'data-s': 'data-s-value-here' # optional
41
42
}
42
43
captcha_id = ita .submit_recaptcha (recaptcha_params ) # submit captcha first, to get ID
43
44
Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ For recaptcha submission there are two things that are required.
72
72
- v3_action - action parameter to use for v3 recaptcha ` - optional `
73
73
- proxy - proxy to use when solving recaptcha, eg. ` 12.34.56.78:1234 ` or ` 12.34.56.78:1234:user:password ` ` - optional `
74
74
- user_agent - useragent to use when solve recaptcha ` - optional `
75
+ - data-s - extra parameter used in solving recaptcha ` - optional `
75
76
76
77
``` python
77
78
recaptcha_params = {
@@ -81,7 +82,8 @@ recaptcha_params = {
81
82
' v3_min_score' : .3 , # optional
82
83
' v3_action' : ' homepage' , # optional
83
84
' proxy' : ' 126.45.34.53:345' , # or 126.45.34.53:123:joe:password
84
- ' user_agent' : ' Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0' # optional
85
+ ' user_agent' : ' Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0' , # optional
86
+ ' data-s' : ' data-s-value-here' # optional
85
87
}
86
88
captcha_id = ita.submit_recaptcha(recaptcha_params)
87
89
```
You can’t perform that action at this time.
0 commit comments