Тесты методов

This commit is contained in:
Andrei 2017-10-25 23:32:11 +03:00
parent 4e122812b8
commit 9ec48c4048
1 changed files with 17 additions and 3 deletions

20
test.py
View File

@ -1,5 +1,19 @@
from python3_anticaptcha import ImageToTextTask, config from python3_anticaptcha import ImageToTextTask, config, AntiCaptchaControl, FunCaptchaTask, NoCaptchaTaskProxyless
key = config.TEST_KEY key = config.TEST_KEY
print(ImageToTextTask.ImageToTextTask(key, save_format = 'const').captcha_handler('http://85.255.8.26/static/image/common_image_example/800070.png')) #print(ImageToTextTask.ImageToTextTask(key, save_format = 'const').captcha_handler('http://85.255.8.26/static/image/common_image_example/800070.png'))
print(ImageToTextTask.ImageToTextTask(key).captcha_handler('http://85.255.8.26/static/image/common_image_example/800070.png')) #print(AntiCaptchaControl.AntiCaptchaControl(anticaptcha_key = config.TEST_KEY).complaint_on_result(reported_id = -5))
print(AntiCaptchaControl.AntiCaptchaControl(anticaptcha_key = config.TEST_KEY).get_balance())
'''
print(FunCaptchaTask.FunCaptchaTask(config.TEST_KEY,
proxyType='HTTP',
proxyAddress="8.8.8.8",
proxyPort=8080,
proxyLogin="proxyLoginHere",
proxyPassword="proxyPasswordHere")
.captcha_handler(websiteURL='85.450.48',
websitePublicKey='789456132'))
'''
print(NoCaptchaTaskProxyless.NoCaptchaTaskProxyless(anticaptcha_key=config.TEST_KEY)
.captcha_handler(websiteURL='https://www.google.com/recaptcha/intro/android.html',
websiteKey='6LeuMjIUAAAAAODtAglF13UiJys0y05EjZugej6b'))