Skip to main content

Wikipedia ContentTranslation (CXServer) API wrapper to be used with mwclient

Project description

PyPI version

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mwclient_contenttranslation-0.1.1.post1.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file mwclient_contenttranslation-0.1.1.post1.tar.gz.

File metadata

File hashes

Hashes for mwclient_contenttranslation-0.1.1.post1.tar.gz
Algorithm Hash digest
SHA256 951ef35ba7c5c13c0c86e8ad25050247ca1cb8e3b58e7830af3ded6042ae597d
MD5 c572338d1138e47f6034eb2a3ae00afa
BLAKE2b-256 47d6b334a0f317497929b72b96215fbd14d313b56bd646e3843243a7edbef4cf

See more details on using hashes here.

File details

Details for the file mwclient_contenttranslation-0.1.1.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for mwclient_contenttranslation-0.1.1.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 0881c01d54aefdafc7bab9a40ddce8abeeb7147de095393ba3b5d0d2f57da2ce
MD5 82958dff7916fdb2659b685a52cba7fc
BLAKE2b-256 47f03a0331c82db8c79ea542c97165c91e44404686b81ad0ec8ae63cdb82f64f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page