Skip to content

Instantly share code, notes, and snippets.

@vasmedvedev
Created May 23, 2017 10:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vasmedvedev/64f0803d53c4a6c9fafdc0ad87b02d98 to your computer and use it in GitHub Desktop.
Save vasmedvedev/64f0803d53c4a6c9fafdc0ad87b02d98 to your computer and use it in GitHub Desktop.
import requests
from operator import itemgetter
url = 'http://smt.qa.mail.ru/stands.json'
r = requests.get(url)
result = r.json()
for stand in result:
if stand['name'] == 'vm6':
return stand['id']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment