I am trying to send a GET request to a URL that I know returns data in the form of JSON using python.
I would like to know how to send this request to http://someurl/path/to/json
, and how to parse it - preferably to a python dict.
I am trying to send a GET request to a URL that I know returns data in the form of JSON using python.
I would like to know how to send this request to http://someurl/path/to/json
, and how to parse it - preferably to a python dict.
Python's standard library has
json
andurllib2
modules.For anything with requests to URLs you might want to check out requests. For JSON in particular: