Created
May 23, 2017 10:33
-
-
Save vasmedvedev/64f0803d53c4a6c9fafdc0ad87b02d98 to your computer and use it in GitHub Desktop.
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
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