Skip to main content

Yet another wiktionary parser

Project description

wikiglot

CI codecov

Overview

wikiglot parses entries in Wiktionary pages. It is designed to be simple and flexible.

Installing

wikiglot can be installed from source via pip:

pip install git+https://github.com/jolars/wikiglot

Usage

Using wikiglot is simple. Here's an example of how to parse the entry from the Swedish Wiktionary page for "katt" (cat):

from wikiglot import Wiktionary

parser = Wiktionary("sv")

parser.lookup("katt")

You can also parse entries for words in other languages that are available on the Swedish Wiktionary page:

parser.lookup("funicular", "en")

Limitations

wikiglot parses Wiktionary pages one-by-one, which can be slow if you need to look up a large number of words. If that is the case, you might prefer a solution that relies on a downloaded version of Wiktionary.

Contributing

When writing commit messages, please use the conventional commits format.

Versioning

wikiglot uses semantic versioning.

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

wikiglot-0.2.1.tar.gz (154.0 kB view hashes)

Uploaded Source

Built Distribution

wikiglot-0.2.1-py3-none-any.whl (82.6 kB view hashes)

Uploaded Python 3

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