From 4b30fa33991ccdf89c77471382daad3d3bc8c988 Mon Sep 17 00:00:00 2001 From: ajctrl <59609985+ajctrl@users.noreply.github.com> Date: Thu, 17 Dec 2020 20:04:10 +0900 Subject: [PATCH] Update token.py (#1075) fix issue #1061 --- twint/token.py | 1 + 1 file changed, 1 insertion(+) diff --git a/twint/token.py b/twint/token.py index 0eeb0dc0..ae66a24a 100644 --- a/twint/token.py +++ b/twint/token.py @@ -18,6 +18,7 @@ def __init__(self, msg): class Token: def __init__(self, config): self._session = requests.Session() + self._session.headers.update({'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0'}) self.config = config self._retries = 5 self._timeout = 10