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
vocab_api-0.0.3.tar.gz
(2.4 kB
view details)
Built Distribution
File details
Details for the file vocab_api-0.0.3.tar.gz
.
File metadata
- Download URL: vocab_api-0.0.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 | c29517edb69589989757fae1e2094aacb9f6fbeeccb8fea57c52559a99001b50 |
|
MD5 | 13c5d24a55c28d7f6b459a44c11c92ba |
|
BLAKE2b-256 | 273ceb383ce3078a003aabf6483247de25d3892c05196a2d31cdf72f7c4bd0fd |
File details
Details for the file vocab_api-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: vocab_api-0.0.3-py3-none-any.whl
- Upload date:
- Size: 2.6 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 | 4f1870e58273ddd11570d565941cebc08db8ef9cedd0b70045ee4d88c87eab80 |
|
MD5 | cd6dd9f65fda2b9d72ae826c93576709 |
|
BLAKE2b-256 | aa582b3c5cb5c24531a80a7adc81ea112b0ef9e0bf8419de3f5303c89a9a1348 |