a guest Oct 16th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- import requests
- def get_json(url):
- '''Make GET http request to retrieve json data'''
- return requests.get(url).json()
- def main():
- '''Main function, program entry point'''
- data = get_json('https://jsonplaceholder.typicode.com/users')
RAW Paste Data