vocab_api
Project description
VOCAB_API
This package has two main features:
If given the vocabulary.com lists, it returns all the words as a python list
from vocab_api import get_list
l = get_list("https://www.vocabulary.com/lists/7813867")#Insert the vocab list here
print(l)
There is also a class called Words which contains following features:\
- word_name
- short_desc
- long_desc
- similar
from vocab_api import Word
w = Word("callow")
print(w.as_dict())
I have used html because it would be easy to push into anki. If you
want text then you can use bs4 text property
In the above case if i want my short_desc to be in text:
dict1 = w.as_dict()
dict1['short_desc'][0].text
would solve the issue
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 vocab_api-0.1.3.tar.gz.
File metadata
- Download URL: vocab_api-0.1.3.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67a94748ebd013b7c0ffd502d2496421d875c8804ccbd85552b0f6530f6696a8
|
|
| MD5 |
57e8f80633c11ac77f90e6b5213dcef0
|
|
| BLAKE2b-256 |
35708d7263ad108b64e7c7bdb96ae83ae641132be403518c0f8c7501abe8271d
|
File details
Details for the file vocab_api-0.1.3-py3-none-any.whl.
File metadata
- Download URL: vocab_api-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32fd6022c414573ce799d054d35b909eb50809bc5d42415f15beaa5334c7e144
|
|
| MD5 |
979e17bd84957cd459c90c8c921bb5af
|
|
| BLAKE2b-256 |
c92a5815547462ba482163cae670dfa43675a29d7664c67f809ce0c48d3d7c32
|