Add nocaptcha contexmanager example
This commit is contained in:
parent
b188f7ba9a
commit
5d94fda82a
|
@ -12,6 +12,15 @@ result = NoCaptchaTaskProxyless.NoCaptchaTaskProxyless(anticaptcha_key = ANTICAP
|
|||
websiteKey='6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-')
|
||||
print(result)
|
||||
|
||||
# contextmanager
|
||||
with NoCaptchaTaskProxyless.NoCaptchaTaskProxyless(anticaptcha_key = ANTICAPTCHA_KEY) as nocaptcha:
|
||||
response = nocaptcha.captcha_handler(
|
||||
websiteURL='https://www.google.com/recaptcha/api2/demo',
|
||||
websiteKey='6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-'
|
||||
)
|
||||
print(response)
|
||||
|
||||
|
||||
# Пример работы антикапчи с гугловской невидимой рекапчёй и обычной рекапчёй с использованием ПРОКСИ
|
||||
result = NoCaptchaTask.NoCaptchaTask(anticaptcha_key = ANTICAPTCHA_KEY,
|
||||
proxyType='http',
|
||||
|
|
Loading…
Reference in New Issue