import aiohttp
async with aiohttp.ClientSession() as session:
async with session.get('http://httpbin.org/get') as resp:
print(resp.status)
print(await resp.text())
File "/home/mov/PycharmProjects/parser/test_.py", line 3
async with aiohttp.ClientSession() as session:
^
SyntaxError: 'async with' outside async function
Process finished with exit code 1