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.gitcd OxfordAPIpython 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
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :+1:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file oxforddictionaries-0.1.101.tar.gz.
File metadata
- Download URL: oxforddictionaries-0.1.101.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c65389d7c1b52d05ef4c0033c4fa668126555b03631ac8af9ddf75cd26be08d
|
|
| MD5 |
1806e2c24dd7a6effe556ff95a863ab5
|
|
| BLAKE2b-256 |
adb40d24ef443f8419ffd1b0953f3058817522134b018dd4ea4bd994776c2c7a
|
File details
Details for the file oxforddictionaries-0.1.101-py3-none-any.whl.
File metadata
- Download URL: oxforddictionaries-0.1.101-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77e476878853c8dadeb340344f60a509b19f5af8fa8bb3646e76b167046fb23a
|
|
| MD5 |
5d1961fff9efb1adb6a0363efaa76eec
|
|
| BLAKE2b-256 |
486263b6742090994c53ffa5bcddb4b02c2ae3c0389d22bf4dd044757058e689
|