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
File details
Details for the file mwclient_contenttranslation-0.1.1.post1.tar.gz
.
File metadata
- Download URL: mwclient_contenttranslation-0.1.1.post1.tar.gz
- Upload date:
- Size: 15.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.10.8 Linux/6.0.12-zen1-1-zen
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 951ef35ba7c5c13c0c86e8ad25050247ca1cb8e3b58e7830af3ded6042ae597d |
|
MD5 | c572338d1138e47f6034eb2a3ae00afa |
|
BLAKE2b-256 | 47d6b334a0f317497929b72b96215fbd14d313b56bd646e3843243a7edbef4cf |
File details
Details for the file mwclient_contenttranslation-0.1.1.post1-py3-none-any.whl
.
File metadata
- Download URL: mwclient_contenttranslation-0.1.1.post1-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.10.8 Linux/6.0.12-zen1-1-zen
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0881c01d54aefdafc7bab9a40ddce8abeeb7147de095393ba3b5d0d2f57da2ce |
|
MD5 | 82958dff7916fdb2659b685a52cba7fc |
|
BLAKE2b-256 | 47f03a0331c82db8c79ea542c97165c91e44404686b81ad0ec8ae63cdb82f64f |