V
V
VirusBrain2018-05-07 22:33:36
Python
VirusBrain, 2018-05-07 22:33:36

How to parse JSON response in Python?

I am absolute 0 in Python. And I'm a trader.
But one thing really needs to be done:
Parse the JSON response from this api - https://www.mininghamster.com/api/v2/aI6dgBApSPbph...
And output "market" to the console via print.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
santaatnas, 2018-05-07
@VirusBrain

import requests

response = requests.get("https://www.mininghamster.com/api/v2/aI6dgBApSPbph0kDISXNCaoHYvVgXTfS")
print(response.json()[0]['market'])

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question