Skip to content
This repository was archived by the owner on Mar 5, 2021. It is now read-only.

Commit ee43a1f

Browse files
added data-s recaptcha optional parameter
1 parent 4efb831 commit ee43a1f

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

imagetyperzapi2/imagetyperzapi.py

+1
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ def submit_recaptcha(self, d):
248248
if d.has_key('type'): data['recaptchatype'] = d['type']
249249
if d.has_key('v3_action'): data['captchaaction'] = d['v3_action']
250250
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']
251252

252253
# make request with all data
253254
response = self._session.post(url, data=data,

main.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ def test_api():
3737
#'v3_min_score' : .1, # optional
3838
#'v3_action' : 'homepage', # optional
3939
#'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
4142
}
4243
captcha_id = ita.submit_recaptcha(recaptcha_params) # submit captcha first, to get ID
4344

readme.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ For recaptcha submission there are two things that are required.
7272
- v3_action - action parameter to use for v3 recaptcha `- optional`
7373
- proxy - proxy to use when solving recaptcha, eg. `12.34.56.78:1234` or `12.34.56.78:1234:user:password` `- optional`
7474
- user_agent - useragent to use when solve recaptcha `- optional`
75+
- data-s - extra parameter used in solving recaptcha `- optional`
7576

7677
``` python
7778
recaptcha_params = {
@@ -81,7 +82,8 @@ recaptcha_params = {
8182
'v3_min_score' : .3, # optional
8283
'v3_action' : 'homepage', # optional
8384
'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
8587
}
8688
captcha_id = ita.submit_recaptcha(recaptcha_params)
8789
```

0 commit comments

Comments
 (0)