Dictionary module
Project description
py-dictionary
returns meaning, synonyms, antonyms for a word (scraping dictionary.com) limit the no of results also get meaning, synonyms and antonyms in different color
This module uses requests, bs4 and string-color modules and scraps dictionary.com
How to use it
Install it
pip install Py-Dictionary
Use
from pydictionary import Dictionary
dict = Dictionary("fix")
#enter the word you want to search here e.g. I used the word "fix"
dict.meaning()
dict.synonyms()
dict.antonyms()
This will print maximum 5 results with text having white color
If you want to increase or decrease maximum results do this
dic = Dictionary("fix",10)
#now maximum 10 results will be shown
To change the color of text
dict.meaning("red")
dict.synonyms("green")
dict.antonyms("blue")
#To get more color look up string-color module or type string-color in your terminal
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
Hashes for Py_Dictionary-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3392e36c5dbdc8fbfcb520a307ec8da4c72896c7c3eb9d4b3c683831c42d503 |
|
MD5 | a7838c282298f8c98a197adf3675c826 |
|
BLAKE2b-256 | 9a8a587aaff9405888300f99f11e41c17aaeee2fa0dda9849711e576abf52066 |