UserAgent теперь работае с кэшем.

Модуль конктроля средств возвращает JSON сервера без проверок.
This commit is contained in:
Andrei 2017-10-30 02:16:13 +03:00
parent ab14a664c4
commit 4568299f5f
2 changed files with 2 additions and 5 deletions

View File

@ -14,9 +14,6 @@ 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()
def complaint_on_result(self, reported_id):

View File

@ -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