mirror of
https://github.com/myned/modufur.git
synced 2024-12-24 22:27:28 +00:00
Remove scraper headers
This commit is contained in:
parent
fe094b5fa4
commit
acab70f4af
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue