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-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c68615e2663c7d0f5eacf018e5f4cb73671c64aea408cce6c1eba2e97235489 |
|
MD5 | 54a586fbf305ca43e9e4a706512e9e1a |
|
BLAKE2b-256 | a136011f5fd0d04a203bdf7e79c35e1b91c54c28f83c4acc858e18dd44bbde41 |