mirror of
https://github.com/myned/modufur.git
synced 2024-12-25 06:37:29 +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 def _post(url, data):
|
||||||
async with aiohttp.ClientSession() as session:
|
async with aiohttp.ClientSession() as session:
|
||||||
async with session.post(
|
async with session.post(url, data=data) as response:
|
||||||
url, data=data, headers={"User-Agent": "Myned/Modufur (https://github.com/Myned/Modufur)"}
|
|
||||||
) as response:
|
|
||||||
return await response.json() if response.status == 200 else None
|
return await response.json() if response.status == 200 else None
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue