Skip to main content

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())

image

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


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)

Uploaded Source

Built Distribution

vocab_api-0.1.3-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page