https://github.com/jolars/wikiglot
Yet another Wiktionary parser
https://github.com/jolars/wikiglot
dictionary language python wikitionary
Last synced: 4 months ago
JSON representation
Yet another Wiktionary parser
- Host: GitHub
- URL: https://github.com/jolars/wikiglot
- Owner: jolars
- License: mit
- Created: 2024-02-20T20:13:04.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-18T18:25:19.000Z (6 months ago)
- Last Synced: 2024-12-01T08:55:47.931Z (6 months ago)
- Topics: dictionary, language, python, wikitionary
- Language: HTML
- Homepage: https://jolars.github.io/wikiglot/
- Size: 181 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# wikiglot
[](https://github.com/jolars/wikiglot/actions/workflows/ci.yml)
[](https://codecov.io/gh/jolars/wikiglot)## Overview
**wikiglot** parses entries in Wiktionary pages. It is designed to be simple and flexible.
## Installing
**wikiglot** can be installed from pypa using pip:
```sh
pip install wikiglot
```## Usage
Using **wikiglot** is simple. Here's an example of how to parse the entry from the Swedish Wiktionary page for "katt" (cat):
```python
from wikiglot import Wiktionaryparser = Wiktionary("sv")
parser.lookup("katt")
```You can also parse entries for words in other languages that are available on the Swedish Wiktionary page:
```python
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](https://www.conventionalcommits.org/en/v1.0.0/).
## Versioning
wikiglot uses [semantic versioning](https://semver.org).