diff --git a/python3_anticaptcha/AntiCaptchaControl.py b/python3_anticaptcha/AntiCaptchaControl.py index 40045e9..ec267ed 100644 --- a/python3_anticaptcha/AntiCaptchaControl.py +++ b/python3_anticaptcha/AntiCaptchaControl.py @@ -14,10 +14,7 @@ class AntiCaptchaControl: ''' answer = requests.post(get_balance_url, json = {'clientKey': self.ANTICAPTCHA_KEY}) - if answer.json()['errorId'] == 0: - return answer.json() - else: - return answer.json() + return answer.json() def complaint_on_result(self, reported_id): ''' diff --git a/python3_anticaptcha/config.py b/python3_anticaptcha/config.py index ba7a202..ff6fd4c 100644 --- a/python3_anticaptcha/config.py +++ b/python3_anticaptcha/config.py @@ -14,4 +14,4 @@ app_key = "1899" # получаем рандомный userAgent from fake_useragent import UserAgent -user_agent_data = UserAgent(cache=False).random +user_agent_data = UserAgent().random