Youdao translate API for python
Project description
This is a translate API that was made with requests.post, hashlib, and random
The module use 有道翻译 to translate
It’s not open source, so there’s no licenses.
Run it with a simple line of code in terminal:
::
python -m tapi
It will print out the result of translation
Or you can use it like this:
::
xxxxxxxxxx
from tapi import mainAPI
mainAPI('Hello', fr='AUTO', to='AUTO')
It will return a dict with type(EN2ZH? ZH2ES?……), result, smart result(With the meaning of words) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Author: UNKNOWN
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
ydtapi-1.2-py3-none-any.whl
(3.2 kB
view hashes)