mirror of
https://github.com/laramies/theHarvester.git
synced 2025-02-26 07:23:17 +08:00
commit
457767ce9f
1 changed files with 1 additions and 1 deletions
|
@ -434,7 +434,7 @@ async def fetch(session, url, params='', json=False, proxy="") -> Union[str, dic
|
||||||
async with session.get(url, params=params, proxy=proxy) as response:
|
async with session.get(url, params=params, proxy=proxy) as response:
|
||||||
return await response.text() if json is False else await response.json()
|
return await response.text() if json is False else await response.json()
|
||||||
else:
|
else:
|
||||||
async with session.get(url, proxy=proxy) as response:
|
async with session.get(url) as response:
|
||||||
await asyncio.sleep(2)
|
await asyncio.sleep(2)
|
||||||
return await response.text() if json is False else await response.json()
|
return await response.text() if json is False else await response.json()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue