Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with google translate api #6

Open
xvan opened this issue Aug 15, 2012 · 0 comments
Open

Error with google translate api #6

xvan opened this issue Aug 15, 2012 · 0 comments

Comments

@xvan
Copy link

xvan commented Aug 15, 2012

xgoogle fails due to Abuse

File "./cool.py", line 9, in
print pars.unescape(translate("ayuda", lang_to="en"))
File "/usr/local/lib/python2.7/dist-packages/xgoogle-1.3-py2.7.egg/xgoogle/translate.py", line 49, in translate
raise TranslationError, "Failed translating: %s" % data['responseDetails']
xgoogle.translate.TranslationError: Failed translating: Suspected Terms of Service Abuse. Please see http://code.google.com/apis/errors

When trying to run this:

!/usr/bin/python

import sys
import HTMLParser
from xgoogle.translate import Translator

pars = HTMLParser.HTMLParser()
translate = Translator().translate
print pars.unescape(translate("traducir esto", lang_to="en"))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant