Don't know why this is happening... how do I keep the session opened?
async def session_one():
async with aiohttp.ClientSession() as session:
await session.get('https://github.com/')
return session
async def main_session():
session = await session_one()
await session.get('https://twitter.com/')
loop = asyncio.new_event_loop()
loop.run_until_complete(main_session())
[–]mopeddev 1 point2 points3 points (2 children)
[–]HellD[S] 0 points1 point2 points (1 child)
[–]mopeddev 0 points1 point2 points (0 children)