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.1.3.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for vocab_api-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32fd6022c414573ce799d054d35b909eb50809bc5d42415f15beaa5334c7e144 |
|
MD5 | 979e17bd84957cd459c90c8c921bb5af |
|
BLAKE2b-256 | c92a5815547462ba482163cae670dfa43675a29d7664c67f809ce0c48d3d7c32 |