From 38952ae74710a090e2a09c7ec5d935c680d6b242 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Mon, 4 May 2020 10:29:48 +0200 Subject: [PATCH] Use custom user-agent to bypass cloudflare (i hope) --- pynyaata/connectors/core.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pynyaata/connectors/core.py b/pynyaata/connectors/core.py index 07a9b36..7376a4e 100644 --- a/pynyaata/connectors/core.py +++ b/pynyaata/connectors/core.py @@ -11,7 +11,9 @@ from requests import RequestException from ..config import CACHE_TIMEOUT, IS_DEBUG -scraper = create_scraper() +scraper = create_scraper(browser={ + 'custom': 'ScraperBot/1.0' +}) class ConnectorReturn(Enum):