From a7fac4ed6f0c13241b93d99da3208bd98521e30b Mon Sep 17 00:00:00 2001 From: Andrei Date: Thu, 14 Dec 2017 01:27:12 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B0=D0=B2=D0=BA=D0=B0=20=D1=80?= =?UTF-8?q?=D0=B0=D0=B1=D0=BE=D1=82=D1=8B=20fake=5Fuseragent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python3_anticaptcha/config.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python3_anticaptcha/config.py b/python3_anticaptcha/config.py index ff6fd4c..10c0c3a 100644 --- a/python3_anticaptcha/config.py +++ b/python3_anticaptcha/config.py @@ -13,5 +13,7 @@ app_key = "1899" # random user agent data # получаем рандомный userAgent from fake_useragent import UserAgent - -user_agent_data = UserAgent().random +try: + user_agent_data = UserAgent().random +except: + user_agent_data = 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0; Touch)'