From b761fd42dc7f9aacf0c3e714e63b23ef043d1c66 Mon Sep 17 00:00:00 2001 From: redV0ID Date: Sun, 22 Oct 2017 16:21:54 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D1=87=D1=82=D0=B8=20=D0=B7=D0=B0?= =?UTF-8?q?=D0=BF=D0=BE=D0=BB=D0=BD=D0=B5=D0=BD=20=D0=BF=D0=B5=D0=B9=D0=BB?= =?UTF-8?q?=D0=BE=D0=B0=D0=B4(=D0=B1=D0=B5=D0=B7=20=D0=BF=D1=80=D0=BE?= =?UTF-8?q?=D0=BA=D1=81=D0=B8-=D0=BF=D0=BE=D0=BB=D0=B5=D0=B9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python3_anticaptcha/NoCaptchaTask.py | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/python3_anticaptcha/NoCaptchaTask.py b/python3_anticaptcha/NoCaptchaTask.py index 768c343..f6520cb 100644 --- a/python3_anticaptcha/NoCaptchaTask.py +++ b/python3_anticaptcha/NoCaptchaTask.py @@ -8,7 +8,8 @@ class NoCaptchaTask: """ TODO """ - def __init__(self, anticaptcha_key, sleep_time=5, website_url, website_key, **kwargs): + # Добавить прокси адрес + def __init__(self, anticaptcha_key, website_url, website_key, proxy_type="http", sleep_time=5, **kwargs): """ TODO :params @@ -16,8 +17,21 @@ class NoCaptchaTask: """ self.ANTIKAPTCHA_KEY = anticaptcha_key self.sleep_time = sleep_time + self.website_url = website_url + self.website_key = website_key + self.proxy_type = proxy_type #TODO заполнить пайлоад для решения рекапчи - self.task_payload = {} + self.task_payload = {"clientKey": self.ANTIKAPTCHA_KEY, + "task": + { + "type": "NoCaptchaTask", + "website_url": self.website_url, + "website_key": self.website_key, + "proxy_type": self.proxy_type, + "proxy_adress": "", + "proxy_login": "", + "proxy_password": "" + }} if kwargs: for key in kwargs: