Microsoft(Bing) translate API for python3
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Initial commit Apr 12, 2014
README.md 增加超时自动重新登录 Apr 17, 2014
__init__.py 增加超时自动重新登录 Apr 17, 2014

README.md

Python-Microsoft-Translate-API

Microsoft(Bing) translate API for python3


###Requirement

Requests

Python3


###Installation

pip install mstranslate

###Usage

from mstranslate import MSTranslate

kk = MSTranslate('client_id', 'client_secret')
print(kk.translate('你好', 'en'))
>>> How do you do

PS:You can specificy the from language as the third parameter in translate() function.