M
M
Muxauko2019-08-06 06:12:44
Python
Muxauko, 2019-08-06 06:12:44

json parsing in aiohttp?

Hello, I have a question. I'm trying to deal with aiohttp.

async with aiohttp.ClientSession() as session:
        async with session.get('https://api.github.com/events') as resp:
            print(await resp.json())

After the request, I output json response. but I need to get a certain value from it (navigate through the json body). Tell me how to do it. I did json.loads (resp) on Requests, it looks different here, but I don’t know how.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question