Babelpython

This should be fairly obvious what it is doing.



# -*- coding: utf-8 -*- #/usr/bin/python import urllib import simplejson url="http://ajax.googleapis.com/ajax/services/language/translate" params={} params['langpair']='|en' params['v']='1.0' params['q']="Bonjour mon ami!" data=urllib.urlencode(params) response=urllib.urlopen(url,data) json=simplejson.load(response) print json['responseData']['translatedText'] wait=raw_input()

0 comments:

Automated Intelligence

Automated Intelligence
Auftrag der unendlichen LOL katzen