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 hashes)
Built Distribution
Close
Hashes for vocab_api-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f1870e58273ddd11570d565941cebc08db8ef9cedd0b70045ee4d88c87eab80 |
|
MD5 | cd6dd9f65fda2b9d72ae826c93576709 |
|
BLAKE2b-256 | aa582b3c5cb5c24531a80a7adc81ea112b0ef9e0bf8419de3f5303c89a9a1348 |