translate tool support(google,baidu,iciba,youdao)
Project description
translate utils support google,baidu,iciba,youdao
[introduction]
- support version: python 3.0+
down install
- pip install:
pip install translate-util
DEMO
from translate_util.translate_tool import translate_other2cn,translate_other2en
# translate other language to chinese (default use google)
print(translate_other2cn('china'))
# translate other language to english (default use google)
print(translate_other2en('中国'))
# other plat translate demo
content = 'china'
for plat in ['google', 'baidu', 'youdao']:
print(f'{plat}:{translate_other2cn(content, plat)}')
content = '中国'
for plat in ['google', 'baidu', 'youdao']:
print(f'{plat}:{translate_other2en(content, plat)}')
# if your request is limit by google,please use proxies ip
tran_rs = translate_other2cn(content='chinese', platform='google', proxies='5.34.178.48:8080')
print(tran_rs)
OTHER SUPPORT
any customization demand,contact me with email
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
translate_util-1.0.8.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for translate_util-1.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09e36642a3585dcfe38af488425f5190939514afa76f9a6b5d5ff9660223c58f |
|
MD5 | 3a5a387836e2b550995bf5312f86ac72 |
|
BLAKE2b-256 | 765198c3f0179d3ce34b3d3e9e62f56702558ba4e9b9934d72f0665e819e2589 |