/python-randomword

Simple API python to get random words with definition (from randomword.com)

Primary LanguagePythonMIT LicenseMIT

python-randomword

v1.0.3

Simple API python to get random word with definition (offline usage)

Installation

pip install python-randomword

Usage

from randomword import RandomWord

rw = RandomWord()

for i in range(0, 5):
    result = rw.get()
    print("# %s : %s" % (result['word'], result['definition']))

or simply :

>>> from randomword import RandomWord
>>> print( RandomWord() )
# sluggard : lazy slow-moving person