Skip to main content

A python wrapper for the Oxford Dictionaries API.

Project description

Oxford Dictionary API Python Wrapper

This is a python wrapper for the Oxford Dictionary API. The Oxford API offers a free plan with up to 3,000 requests per month with ull access to Oxford Dictionaries data, although you will need to register for an API key. Sign up here.

Installation

  • git clone git@github.com:RafaelBroseghini/OxfordAPI.git
  • cd OxfordAPI
  • python OxfordDictionaries.py

Usage

The code below shows how to quickly get 10 synonyms for a chosen word.

from oxforddictionaries.words import OxfordDictionaries

o = OxfordDictionaries.Oxford(app_id, app_key)

relax = o.get_synonyms("absorb").json()

synonyms = relax['results'][0]['lexicalEntries'][0]['entries'][0]['senses'][0]['synonyms']

for s in range(10):
    print(synonyms[s]['text'])

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :+1:

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

oxforddictionaries-0.1.101.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

oxforddictionaries-0.1.101-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file oxforddictionaries-0.1.101.tar.gz.

File metadata

File hashes

Hashes for oxforddictionaries-0.1.101.tar.gz
Algorithm Hash digest
SHA256 5c65389d7c1b52d05ef4c0033c4fa668126555b03631ac8af9ddf75cd26be08d
MD5 1806e2c24dd7a6effe556ff95a863ab5
BLAKE2b-256 adb40d24ef443f8419ffd1b0953f3058817522134b018dd4ea4bd994776c2c7a

See more details on using hashes here.

File details

Details for the file oxforddictionaries-0.1.101-py3-none-any.whl.

File metadata

File hashes

Hashes for oxforddictionaries-0.1.101-py3-none-any.whl
Algorithm Hash digest
SHA256 77e476878853c8dadeb340344f60a509b19f5af8fa8bb3646e76b167046fb23a
MD5 5d1961fff9efb1adb6a0363efaa76eec
BLAKE2b-256 486263b6742090994c53ffa5bcddb4b02c2ae3c0389d22bf4dd044757058e689

See more details on using hashes here.

Supported by

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