A Python package to crawl Britannica Dictionary for word entries, definitions, and more.
Project description
Britannica Dictionary Crawler
This package allows you to scrape word entries, definitions, parts of speech, and the word of the day from the Britannica Dictionary.
Installation
You can install the package directly from GitHub using pip:
pip install git+https://github.com/Esubaalew/Dictionary.git
Alternatively, after publishing to PyPI, you can install the package like this:
pip install britannica-dictionary
from dictionary.britannica import get_entries, get_definitions, get_word_of_the_day
# Get related entries for a word
entries = get_entries('python')
print(entries)
# Get word definitions
definitions = get_definitions('python')
print(definitions)
# Get word of the day
word_of_the_day = get_word_of_the_day()
print(word_of_the_day)
Functions
1. get_entries(word)
Fetches related entries for a word from Britannica Dictionary.
Args:
word
(str): Word to search for.
Returns:
list
: List of dictionaries containing the text and link of each entry.
2. get_definitions(word)
Fetches definitions and examples for a word from Britannica Dictionary.
Args:
word
(str): Word to search for.
Returns:
list
: List of dictionaries containing the meaning and examples of word usage.
3. get_word_of_the_day()
Fetches the word of the day from Britannica Dictionary.
Returns:
dict
: Dictionary containing the word, part of speech, image, and meanings.
Features
- Get related entries for any word
- Fetch definitions and examples of word usage
- Retrieve the word of the day from Britannica Dictionary
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file britannica_dictionary-0.1.1.tar.gz
.
File metadata
- Download URL: britannica_dictionary-0.1.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c32c307adc0d7d15de12e7bf012bb24e0c66416e520ecf0e74b6bdffc6137748 |
|
MD5 | 21ea720f63335838a15c3e85e6749e5d |
|
BLAKE2b-256 | 6b29b97dc982a9f05f8c17feb2d6cea38f473d872ecf37a19528ee38fe0c9628 |
File details
Details for the file britannica_dictionary-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: britannica_dictionary-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7c139c93a62da5e48bf8a7bc5553be8dd858f19b49cb88e34581ddbecbcb879 |
|
MD5 | c258ff048a7dc9556e7d056ac8c1ea39 |
|
BLAKE2b-256 | a27b99cdda42d008f292668195fe7150c496b5751f1ff6690a0c9a3ee3698bab |