This is an unofficial UrbanDictionary API.
Visit PyPi page: https://pypi.org/project/urbandictionaryapi/
Install via pip: pip install urbandictionaryapi
Code Example:
from urbandictionaryapi import UrbanDictionary
api = UrbanDictionary()
api.search('word')
api.author()