Skip to main content

Search the meaning of the word from Cambridge Dictionary online, and get the result in JSON format

Project description

Cambridge Dictionary

Search the meaning of the word from Cambridge Dictionary online, and get the result in JSON format

Installation

You can install the cambridict from PyPI:

pip install cambridict

How to use

import json

from cambridict import Cambridge

d = Cambridge('EV')

word = 'take'
data = d.search(word)

result = '{0}.json'.format(word)
with open(result, 'w') as fp:
    json.dump(data, fp, indent=4)

Sample output take.json

Supported dictionaries

Name Dictionary
EE English
EV English-Vietnamese

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

cambridict-0.1.6.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cambridict-0.1.6-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file cambridict-0.1.6.tar.gz.

File metadata

  • Download URL: cambridict-0.1.6.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0.post20200309 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.8.1

File hashes

Hashes for cambridict-0.1.6.tar.gz
Algorithm Hash digest
SHA256 9173721e3f6bf5cefce0edb4c5deeac5bac0002a066710d64c24b525fa6e6b3a
MD5 6d1ae76629a5b194a1be0f769929248b
BLAKE2b-256 f0703aaa14ebcf680df41c9ca2a23f7c3aac707f195581dd358301a86b5a8dc1

See more details on using hashes here.

File details

Details for the file cambridict-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: cambridict-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0.post20200309 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.8.1

File hashes

Hashes for cambridict-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 0d11b49d29c06f9485267ea569dfa499d7e5b160c4a3b0d977a9ca921e723c02
MD5 b79ef9f3d35b527b9405ef5b9612f606
BLAKE2b-256 1731e94411be91d0fb7a189df53f2c580b7c6b8f36df2acacb8bd2c490dd020b

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