Google Translate API with wget (only one client and connection): Suspected Terms of Service Abuse


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Google Translate API with wget (only one client and connection): Suspected Terms of Service Abuse
Prev   Next
# 1  
Old 11-18-2011
Google Translate API with wget (only one client and connection): Suspected Terms of Service Abuse

Hi

Script

Code:
> grep translate .bashrc 
translate(){ wget -qO- "http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=$1&langpair=$2|${3:-en}" | sed 's/.*"translatedText":"\([^"]*\)".*}/\1\n/'; }

error

Code:
> translate "Ich will schwimmen" de en
{"responseData": null, "responseDetails": "Suspected Terms of Service Abuse. Please see http://code.google.com/apis/errors", "responseStatus": 403}

Quote from https://code.google.com/apis/errors/

Quote:
  • We received automated requests, such as scraping and prefetching. Automated requests are prohibited; all requests must be made as a result of an end-user action.
  • Your website charges users. All websites or apps which use Google APIs must be free of charge.
  • Your website caches or stores results. Caching or storing results is allowed in some APIs. Please review the Terms of Use for the API(s) you are using for specific caching policies.
  • Your website does not supply a proper attribution. The Terms of Use require all users to supply the proper attribution with all search results.
  • Your website uses the RESTful interface, but does not include a valid HTTP referer. The API requires a valid referer.
can you repdroduce? Howto fix?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

SSL_ERROR_SYSCALL in connection to qa-api.ncl.com:443

I am getting SSL_ERROR_SYSCALL in connection to qa-api.ncl.com:443. Please help me on this. But I am able to get response in Soap UI. Please use CODE tags when displaying sample input, output, and code segments. (13 Replies)
Discussion started by: Ayeesha
13 Replies

2. UNIX and Linux Applications

Problems with wget and https connection

Hi, I have wget for linux but I'm having trouble using it. I am trying to use it with a HTTPS connection to save cookies but it doesn't works. I do: wget --save-cookies=cookies.txt --post-data... (2 Replies)
Discussion started by: mierdatuti
2 Replies

3. Linux

Better FTP service needed. (suspected inteferance)

Hello there, I have of recent been having overbearing problems with my Linux computer when accessing servers via FTP. The server behaves rather erractically and refuses to complete uploads, merely stalling the transfer for an unpredictable amount of time, which can stem from being either 5... (2 Replies)
Discussion started by: Noran Rad
2 Replies
Login or Register to Ask a Question