From 64c3c25c0b44bd4bf959726761c95dc2f8b13cb1 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Mon, 19 Oct 2020 23:27:26 +0200 Subject: [PATCH] No need to have a custom UA now --- pynyaata/connectors/core.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pynyaata/connectors/core.py b/pynyaata/connectors/core.py index d3057f9..af81182 100644 --- a/pynyaata/connectors/core.py +++ b/pynyaata/connectors/core.py @@ -11,9 +11,7 @@ from requests import RequestException from ..config import CACHE_TIMEOUT, IS_DEBUG, REQUESTS_TIMEOUT, TWOCAPTCHA_API_KEY -scraper = create_scraper(browser={ - 'custom': 'ScraperBot/1.0' -}, interpreter='js2py', captcha=TWOCAPTCHA_API_KEY, debug=IS_DEBUG) +scraper = create_scraper(interpreter='js2py', captcha=TWOCAPTCHA_API_KEY, debug=IS_DEBUG) class ConnectorReturn(Enum):