Created
March 6, 2015 12:34
-
-
Save asmaps/b0e03392f81b33545f14 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
asmaps@asmaps-x240 ~/tmp % cat test.py | |
import requests | |
import json | |
r = requests.get( | |
'https://s3-eu-west-1.amazonaws.com/uploads-eu.hipchat.com/81297/1708406/kh8jkvVIW8FnZeU/synonymdb.json') | |
d = json.loads(r.content) | |
for key, value in d.iteritems(): | |
for l in value: | |
l.remove(key) | |
print(d['Auftrag erteilen']) | |
(requests)asmaps@asmaps-x240 ~/tmp % python test.py | |
[[u'betrauen', u'zuweisen', u'vorsehen', u'ins Stammbuch schreiben', u'bestimmen', u'beauftragen', u'auftragen', u'verdingen', u'designieren', u'mandatieren']] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment