Pathoschild / stewbot

A Python IRC script which automates interactions with MediaWiki wikis based on commands given by users on IRC; primarily intended for Wikimedia steward or administrator operations, but work is being done to enable Wikia and generic wiki use.
http://meta.wikimedia.org/wiki/StewardBot
ISC License
14 stars 5 forks source link

Google Translate API removed #17

Open Pathoschild opened 11 years ago

Pathoschild commented 11 years ago

The translate feature no longer works, since Google removed their Translate APIs. Look into alternatives.

snowolfeu commented 11 years ago

For clarity, it allows you to do something like 3 translates every X hours iirc, but has no longer API keys to bump up the limit.

PiRSquared17 commented 9 years ago

You could technically still use Google Translate (using something like the pip package 'goslate'), but it would probably be against Google's TOU, so I can't recommend it, especially if it's not just for personal use. You could buy an API key, or perhaps "borrow" a key from something like this (with permission, of course), but there's another (legal) way around it: use MyMemory's API, which incorporates Google Translate results. I believe Bing's translate API also requires a key, but you can get one for free if you use <2 million chars/month. You may also wish to support a FOSS machine translation system, such as Apertium, which also has an API. Babelfish's TOU don't seem to mention automation, so maybe you could hack something up using that.

I think you could get probably away with using the method provided by goslate, but it's not a good idea if you care about not violating TOU and there are other solutions that definitely don't violate Google's terms.

Pathoschild commented 9 years ago

I don't actively maintain stewbot anymore since I'm no longer a steward or administrator, but anyone who would like to contribute is welcome to submit a pull request. :)

PiRSquared17 commented 9 years ago

@Pathoschild I'm not a steward either, but I am a global sysop and I've used stewbot before. Which option of the ones in my earlier comment would you prefer to fix the translation command?

Pathoschild commented 9 years ago

@PiRSquared17 Microsoft's Translator API seems like the best option, since it's well-established and has scaling options if needed. We don't want to potentially violate terms of use, so Google Translate and Babelfish are out. MyMemory might work too, but their usage limits are lower than Bing's.