File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ def test_api
35
35
# d['v3_action'] = 'homepage' # action to use when solving v3 - optional
36
36
# d['proxy'] = '126.45.34.53:123' # - HTTP proxy - optional
37
37
# d['user_agent'] = 'Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0' # optional
38
+ # d['data-s'] = 'recaptcha data-s value' # optional
38
39
captcha_id = ita . submit_recaptcha d
39
40
40
41
puts "Waiting for recaptcha to be solved ..."
Original file line number Diff line number Diff line change @@ -292,6 +292,10 @@ def submit_recaptcha(d)
292
292
if d . key? 'v3_min_score'
293
293
data [ 'score' ] = d [ 'v3_min_score' ]
294
294
end
295
+ if d . key? 'data-s'
296
+ data [ 'data-s' ] = d [ 'data-s' ]
297
+ end
298
+
295
299
296
300
# make request
297
301
http = Net ::HTTP . new ( ROOT_DOMAIN , 80 )
Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ d['v3_min_score'] = 0.3 # min score to target when solving v3 - optiona
76
76
d[' v3_action' ] = ' homepage' # action to use when solving v3 - optional
77
77
d[' proxy' ] = ' 126.45.34.53:123' # - optional
78
78
d[' user_agent' ] = ' Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0' # optional
79
+ d[' data-s' ] = ' recaptcha data-s value' # optional
79
80
captcha_id = ita.submit_recaptcha d
80
81
```
81
82
This method returns a captchaID. This ID will be used next, to retrieve the g-response, once workers have
You can’t perform that action at this time.
0 commit comments