From acab70f4afb7bdf640991d7633f6ba5e290c5705 Mon Sep 17 00:00:00 2001 From: Myned Date: Tue, 22 Feb 2022 13:11:35 -0600 Subject: [PATCH] Remove scraper headers --- tools/scraper.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/scraper.py b/tools/scraper.py index fa05257..b5c11a1 100644 --- a/tools/scraper.py +++ b/tools/scraper.py @@ -54,9 +54,7 @@ async def _kheina(url): async def _post(url, data): async with aiohttp.ClientSession() as session: - async with session.post( - url, data=data, headers={"User-Agent": "Myned/Modufur (https://github.com/Myned/Modufur)"} - ) as response: + async with session.post(url, data=data) as response: return await response.json() if response.status == 200 else None