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
I had created a script that scraps vocabulary.com list and then scraps the meaning of each of word in list from vocabulary.com dictionary and then exports it as an Anki Package using default css. The script is uploaded in github as vocab_list.py
The function will create a package by the name called default.apkg