Wikipedia ContentTranslation (CXServer) API wrapper to be used with mwclient
Project description
mwclient-contenttranslation
The wrapper of ContentTranslation (CXServer) API of Wikipedia to be used with mwclient.
Usage
Install via PyPI: pip install mwclient-contenttranslation
from mwclient import Site
from mwclient_contenttranslation import CxTranslator
site = Site("en.wikipedia.org")
site.login(USERNAME, PASSWORD)
translator = CxTranslator(site)
translator.translate_text(["小熊維尼", "蜂蜜罐", "小熊維尼掉進蜂蜜罐"])
# ['Winnie the Pooh', 'honey pot', 'Winnie the Pooh fell into a jar of honey']
Disclaimer
Intended for good use only. Never abuse it.
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
Built Distribution
Close
Hashes for mwclient_contenttranslation-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | facbd0b261028f92b25bf42dce65ed1af721e988976a0ba2fb34072b6c145362 |
|
MD5 | 57f331c4e5dce4d8b36267f2d9ebf469 |
|
BLAKE2b-256 | 22b9ea9e21a4d7f17b8d5b7b873af7856de94f0954b4fe56d0c7167bb75fc297 |
Close
Hashes for mwclient_contenttranslation-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c81de1983ebfecf3543a2fb9bc775fff415757382270a40f0ce56e27403da81 |
|
MD5 | 7aab1a2cd19b375435791661444775c6 |
|
BLAKE2b-256 | 224e5a85d8579dfd046c082dd651695dac81ccd7f69ea3e71106695ae319a31b |