All Projects → aceimnorstuvwxz → bdtranslate

aceimnorstuvwxz / bdtranslate

Licence: MIT license
Baidu translation engine python wrapper 百度翻译python SDK API

Programming Languages

python
139335 projects - #7 most used programming language

bdtranslate

Google is no longer provider free services. If using the web API, blocking(503) happens soon or later. Now baidu translate service provider 2000 thousand free word per month, Wow! Here is the simple python wrapper. Enjoy!

Don't use the testing appid/secret provided in testing code, it will reserved in any time. Get your own appid/secret in ONE minute by this.

##Installation

pip install bdtranslate

##Usage

import bdtranslate

yourAppId = '20170221000039563'
yourSecret = 'nIyk6j2N4pOIc3PpE9tY'

print dbtranslate.translate(yourAppId, yourSecret, "en", "zh", "Prisident reject to lough out loudly, interesting!")

总统拒绝笑大声,有趣!

##language arguments

simbol ref
auto 自动检测
zh 中文
en 英语
yue 粤语
wyw 文言文
jp 日语
kor 韩语
fra 法语
spa 西班牙语
th 泰语
ara 阿拉伯语
ru 俄语
pt 葡萄牙语
de 德语
it 意大利语
el 希腊语
nl 荷兰语
pl 波兰语
bul 保加利亚语
est 爱沙尼亚语
dan 丹麦语
fin 芬兰语
cs 捷克语
rom 罗马尼亚语
slo 斯洛文尼亚语
swe 瑞典语
hu 匈牙利语
cht 繁体中文

##Lisense MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].