diff --git a/src/utils/downloader.py b/src/utils/downloader.py index 6a83a45a..265299c9 100644 --- a/src/utils/downloader.py +++ b/src/utils/downloader.py @@ -151,7 +151,10 @@ async def download_async(url, timeout=20, raise_error=True): def download_mapping(url): - response = requests.get(url) + headers = { + 'User-Agent': 'SmartAPI' + } + response = requests.get(url, headers=headers, timeout=60) response.raise_for_status() return decoder.to_dict(stream=response.content, ext=file_extension(url), ctype=response.headers.get("Content-Type"))