fork download
  1. import requests
  2. import json
  3.  
  4.  
  5. class Tools:
  6.  
  7. def get_random_city(self, city_id):
  8. city = requests.get(f'http://g...content-available-to-author-only...t.com/v1/geo/cities?limit=1&offset={city_id}&hateoasMode=off').text
  9. return json.loads(city)
Success #stdin #stdout 0.31s 28268KB
stdin
Standard input is empty
stdout
Standard output is empty