From 9ec48c4048c333635c8b24effb1905c8c59f68a8 Mon Sep 17 00:00:00 2001 From: Andrei Date: Wed, 25 Oct 2017 23:32:11 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A2=D0=B5=D1=81=D1=82=D1=8B=20=D0=BC=D0=B5?= =?UTF-8?q?=D1=82=D0=BE=D0=B4=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test.py | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/test.py b/test.py index 031612e..6da9e04 100644 --- a/test.py +++ b/test.py @@ -1,5 +1,19 @@ -from python3_anticaptcha import ImageToTextTask, config +from python3_anticaptcha import ImageToTextTask, config, AntiCaptchaControl, FunCaptchaTask, NoCaptchaTaskProxyless 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).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(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'))