UserAgent теперь работае с кэшем.
Модуль конктроля средств возвращает JSON сервера без проверок.
This commit is contained in:
parent
ab14a664c4
commit
4568299f5f
|
@ -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):
|
||||
'''
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue