Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nit-in/py-dictionary
returns meaning, synonyms, antonyms for a word (scraping dictionary.com)
https://github.com/nit-in/py-dictionary
antonyms dictionary english meaning py-dictionary python-library python3 scrapy synonyms
Last synced: 3 months ago
JSON representation
returns meaning, synonyms, antonyms for a word (scraping dictionary.com)
- Host: GitHub
- URL: https://github.com/nit-in/py-dictionary
- Owner: nit-in
- License: unlicense
- Archived: true
- Created: 2020-08-21T20:58:24.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-05-19T05:17:06.000Z (over 1 year ago)
- Last Synced: 2024-03-15T14:22:18.212Z (8 months ago)
- Topics: antonyms, dictionary, english, meaning, py-dictionary, python-library, python3, scrapy, synonyms
- Language: Python
- Homepage:
- Size: 25.4 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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 colorThis module uses requests, bs4 and string-color modules
and scraps dictionary.com## How to use it
## Install it
```shell
pip install Py-Dictionary
```
to update it```shell
pip install Py-Dictionary --upgrade
```## Use
```shell
from pydictionary import Dictionary
dict = Dictionary("fix")
```### enter the word you want to search here e.g. I used the word "fix"
### To get the result as list do following (you can use them in your programs)
```shell
meanings_list = dict.meanings()synonyms_list = dict.synonyms()
antonyms_list = dict.antonyms()
```
### To print the results do following:
```shell
dict.print_meanings()dict.print_synonyms()
dict.print_antonyms()
```This will print maximum 5 results with text having white color
If you want to increase or decrease maximum results do this
```shell
dict = Dictionary("fix",10)
```### now maximum 10 results will be shown
### To change the color of text
```shell
dict.print_meanings("red")dict.print_synonyms("green")
dict.print_antonyms("blue")
```#To get more color look up [string-color](https://pypi.org/project/string-color/) module
or type string-color in your terminal