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:
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)
| File | Size | Uploaded | |
|---|---|---|---|
| oxforddictionaries-0.1.101.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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 |