Skip to main content

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:

Release files for oxforddictionaries 0.1.101

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for oxforddictionaries 0.1.101
File Size Uploaded
oxforddictionaries-0.1.101.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for oxforddictionaries 0.1.101
File Interpreter ABI Platform
oxforddictionaries-0.1.101-py3-none-any.whl Python 3 none any Details

Total release size: 6.4 kB

Release files / oxforddictionaries-0.1.101.tar.gz

Download URL oxforddictionaries-0.1.101.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5c65389d7c1b52d05ef4c0033c4fa668126555b03631ac8af9ddf75cd26be08d
BLAKE2b-256 checksum
How to use checksums
adb40d24ef443f8419ffd1b0953f3058817522134b018dd4ea4bd994776c2c7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / oxforddictionaries-0.1.101-py3-none-any.whl

Download URL oxforddictionaries-0.1.101-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
77e476878853c8dadeb340344f60a509b19f5af8fa8bb3646e76b167046fb23a
BLAKE2b-256 checksum
How to use checksums
486263b6742090994c53ffa5bcddb4b02c2ae3c0389d22bf4dd044757058e689
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.101 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page