wikiglot parses entries in Wiktionary pages. It is designed to be simple and flexible.
wikiglot can be installed from pypa using pip:
pip install wikiglot
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")
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.
When writing commit messages, please use the conventional commits format.
wikiglot uses semantic versioning.