You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

mwclient-contenttranslation

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mwclient-contenttranslation

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

0.1.1.post1
pipPyPI
Maintainers
1

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.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts