Skip to main content

A BS4 based English Dictinonary

Project description

A Beautiful Soup based English Dictionary

An English Dictionary Implementation to explore Databases in depth.
The main method extracts the meaning of the word from the Cambridge, if the meaning doesn't exist in the dictionary database.
After parsing from the site, it prints the meaning and inserts it into the dictionary database.
Once the meaning has been inserted into the dictionary database, look up takes O(1) time.

Direction to install:

Download the package.
Extract from the Zip Folder
Use the following command from on this location on the command prompt:
"python -m pip install ."
After successful installation,On the Python shell :
>>>import eng_dictionary
>>>eng_dictionary.meaning('<< Word you wish to look up for >>')

I have used the following Python modules :

1. urllib : 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:

Project details

Release history Release notifications

This version
History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date (3.6 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page