INNER CODE UNIT · Python
tuples
XDeadHackerX/The_spy_job · requisitos/theHarvester/theHarvester/lib/core.py:338
tuples = await asyncio.gather(*[AsyncFetcher.takeover_fetch(session, url) for url in urls])
return tuples
if len(params) == 0:
async with aiohttp.ClientSession(headers=headers, timeout=timeout) as session:
if proxy:
texts = await asyncio.gather(
*[AsyncFetcher.fetch(session, url, json=json, proxy=random.choice(cls().proxy_list)) for url in
urls])
return texts
else:
texts = await asyncio.gather(*[AsyncFetcher.fetch(session, url, json=json) for url in urls])
return texts
else:
# Indicates the request has certain params
async with aiohttp.ClientSession(headers=headers, timeout=timeout) as session:
if proxy:
texts = await asyncio.gather(*[AsyncFetcher.fetch(session, url, params, json,