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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c9b945f5290b7812de84e4dff0c6ded5b16b05bccfbcae2e8c2bcafddbc8253 |
|
MD5 | a26d387f94abb1cd57312a1b647b892e |
|
BLAKE2b-256 | 091b1c5054c2e133cb3717c9095d51468770609cdd8ad955637b9ed05e59d09c |
Close
Hashes for mwclient_contenttranslation-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ac2905b663c3d92fa4a0675a37f22fff32be6fad6a980f45c582de7fef7b737 |
|
MD5 | f8ead0883dbd3c6d1879c4c23f3f0300 |
|
BLAKE2b-256 | 8ce47534baba6546ecf1c600819ff9b2bee0576eba50a4498175c8a4d87c1f6d |