GitHub - Sharmasourab93 Eng Dictionary

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

12/13/22, 1:54 AM GitHub - sharmasourab93/eng_dictionary

1. Download the package or on the command line type


pip install eng-dictionary

2. After successful installation,On the Python shell :

>>>import dictionary
>>>obj = dictionary.Dictinary()
>>>print(obj.lookup('<word you want to look up meaning for>')

3. To Use bs4 Component

>>> from dictionary import BrowseMeaning


>>> obj = BrowseMeaning()
>>> print(obj.search('<word you want to browse meaning for>'))

Used the following Python modules :

1. requests : To fetch the resources from Cambridge university url for Word meaning
2. bs4: To parse the innerHTML for the word's meaning from the Cambridge University site
3. sqlite3: To lookup for the meaning of the word in the database if it exists else, for
parsing and inserting into the database

References for building the package:


Packaging Python

Improvements In The Previous Version


1. Code Base Quality improved with unittest test cases.
2. Extension & segregation of components in the eng_dictionary package

https://github.com/sharmasourab93/eng_dictionary 1/1

You might also like