SHARE
TWEET

Untitled

a guest Oct 16th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import requests
  2.  
  3. def get_json(url):
  4.     '''Make GET http request to retrieve json data'''
  5.     return requests.get(url).json()
  6.  
  7. def main():
  8.     '''Main function, program entry point'''
  9.     data = get_json('https://jsonplaceholder.typicode.com/users')
  10.     print(data.reverse())
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top