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.