Skip to main content

A BS4 based English Dictionary

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 Univ.site, 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 or on the command line type

`pip install eng-dictionary`

After successful installation,On the Python shell :

`python >>>import dictionary >>>obj = dictionary.Dictinary() >>>print(obj.lookup('<word you want to look up 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](https://packaging.python.org/tutorials/packaging-projects/)

Project details


Download files

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

Source Distribution

eng-dictionary-0.0.1.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file eng-dictionary-0.0.1.tar.gz.

File metadata

  • Download URL: eng-dictionary-0.0.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.5

File hashes

Hashes for eng-dictionary-0.0.1.tar.gz
Algorithm Hash digest
SHA256 af9aab89b41c137085873fee8ca6cb5c66c942f9e97081e428d68f1036eea775
MD5 54a4accbfc917ba85d7a88f7615b0b20
BLAKE2b-256 3e6602102ed1db443b47d717abcd3cc91b954d0153b5f18ed831927309b13400

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page