How to send a HTTP GET request and JSON parsing in Python (using requests)
0
1069
Install requests python module as follows
$ pip install requests
CODE
import requests
r = requests.get('https://github.com/timeline.json')
data = r.json()
print(data)
{'message': 'Hello there, wayfaring stranger. If you’re reading this then you probably didn’t see our blog post a couple of years back announcing that this API would go away: http://git.io/17AROg Fear not, you should be able to get what you need from the shiny new Events API instead.', 'documentation_url': 'https://developer.github.com/v3/activity/events/#list-public-events'}
Comment here