Advertisement
Guest User

Untitled

a guest
Feb 19th, 2021
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. #!/usr/bin/env python3
  2.  
  3. import json
  4. import requests
  5. from sys import argv
  6.  
  7. API = "https://www.speedrun.com/api/v1"
  8.  
  9. r = json.loads(requests.get(f"{API}/users?name={argv[1]}").text)
  10. uid = r["data"][0]["id"]
  11.  
  12. r = json.loads(requests.get(f"{API}/runs?user={uid}").text)
  13. print(r)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement