Skip to content

Commit 8317874

Browse files
Merge pull request #92 from 2captcha/RC-2564-documentation-edits-fix
RC-2564-documentation-edits-fix
2 parents e3f711e + 5a09a64 commit 8317874

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ result = solver.normal('https://site-with-captcha.com/path/to/captcha.jpg', para
111111

112112
### Audio Captcha
113113
To bypass an audio captcha (mp3 formats only) use the following method.
114-
You must provide the language as `lang = 'en'`. Supported languages are "en", "ru", "de", "el", "pt".
114+
You must provide the language as `lang = 'en'`. Supported languages are "en", "ru", "de", "el", "pt", "fr".
115115

116116
```python
117117
result = solver.audio('path/to/captcha.mp3', lang = 'lang', param1=..., ...)
@@ -357,7 +357,7 @@ except TimeoutException as e:
357357
### Proxies
358358

359359
You can pass your proxy as an additional argument for methods: recaptcha, funcaptcha, geetest, geetest v4, hcaptcha,
360-
keycaptcha, capy puzzle, lemin, atbcaptcha, turnstile, amazon waf, mtcaptcha, friendly captcha, cutcaptcha.
360+
keycaptcha, capy puzzle, lemin, atbcaptcha, turnstile, tencent, amazon waf, mtcaptcha, friendly captcha, cutcaptcha.
361361
The proxy will be forwarded to the API to solve the captcha.
362362

363363
We have our own proxies that we can offer you. [Buy residential proxies] for avoid restrictions and blocks. [Quick start].

examples/recaptcha_v2_options.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@
3131
sitekey='6LdO5_IbAAAAAAeVBL9TClS19NUTt5wswEb3Q7C5',
3232
url='https://2captcha.com/demo/recaptcha-v2-invisible',
3333
invisible=1,
34-
enterprise=0
35-
# proxy={
36-
# 'type': 'HTTPS',
37-
# 'uri': 'login:password@IP_address:PORT'
38-
# }
39-
)
34+
enterprise=0,
35+
# datas="bM-8CwwOmqyYCLWatmabvfyYR97ytF95tgu...",
36+
# proxy={'type': 'HTTPS',
37+
# 'uri': 'login:password@IP_address:PORT'
38+
# }
39+
)
4040

4141
except Exception as e:
4242
sys.exit(e)

twocaptcha/solver.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ def capy(self, sitekey, url, **kwargs):
361361
api_server : str, optional
362362
The domain part of script URL you found on page. Default value: https://jp.api.capy.me/.
363363
version : str, optional
364-
The version of captcha task: puzzle (assemble a puzzle) or avatar (drag an object). Default: puzzle.
364+
The version of captcha task: "puzzle" (assemble a puzzle) or "avatar" (drag an object). Default: puzzle.
365365
softId : int, optional
366366
ID of software developer. Developers who integrated their software with 2Captcha get reward: 10% of
367367
spendings of their software users.
@@ -643,11 +643,16 @@ def turnstile(self, sitekey, url, **kwargs):
643643
Value of sitekey parameter you found on page.
644644
url : str
645645
Full URL of the page where you see the captcha.
646+
useragent : str
647+
User-Agent of your browser. Must match the User-Agent you use to access the site.
648+
Use only modern browsers released within the last 6 months.
646649
action : str. optional
647650
Value of optional action parameter you found on page, can be defined in data-action attribute or passed
648651
to turnstile.render call.
649652
data : str, optional
650653
The value of cData passed to turnstile.render call. Also can be defined in data-cdata attribute.
654+
pagedata : str, optional
655+
The value of the chlPageData parameter when calling turnstile.render.
651656
softId : int, optional
652657
ID of software developer. Developers who integrated their software with 2Captcha get reward: 10% of
653658
spendings of their software users.

0 commit comments

Comments
 (0)