Skip to content

Instantly share code, notes, and snippets.

@asmaps
Created March 6, 2015 12:34
Show Gist options
  • Save asmaps/b0e03392f81b33545f14 to your computer and use it in GitHub Desktop.
Save asmaps/b0e03392f81b33545f14 to your computer and use it in GitHub Desktop.
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