Advertisement
BeamNG_IRC

json etc

Apr 19th, 2014
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. import urllib, json
  2. stuff = self.delimit(message[1], "%20")
  3. url = "http://ws.detectlanguage.com/0.2/detect?q=" + stuff + '&key=0708589d1ac3e7304aa3ecb96ed20f68'
  4. response = urllib.urlopen(url);
  5. data = json.loads(response.read())
  6. print data
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement