Last active
June 30, 2017 21:40
-
-
Save tomazursic/ddd3a055d59f606ecb1efdb06abbf89e to your computer and use it in GitHub Desktop.
Random User
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import json | |
import requests | |
url = 'https://randomuser.me/api/' | |
def main(): | |
res = requests.get(url).json() | |
j = json.dumps(res, indent=2) | |
print(j) | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment