Skip to main content

A library for parsing the french wiktionnary

Project description

WiktionnaireParser

A library for parsing the french wiktionary.

Installation

Supported Python versions : 3.6+

With Pip

pip install wiktionnaireparser

From source

python setup.py install

Usage

>>> from wiktionnaireparser import WiktionnaireParser as wiktp
>>> page = wiktp.from_source('nage PMT')
>>> page.get_etymology()
'Forme abrégée de nage avec palmes, masque et tuba.'
>>> page.get_parts_of_speech()
{'Locution nominale': ['(Plongée) Nage avec palmes, masque et tuba.']}

It is also possible to pick a word at random.

>>> page.random_page()
>>> page.get_title()
'décrocher'

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

wiktionnaireparser-0.0.3.tar.gz (8.7 kB view hashes)

Uploaded Source

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