Urban Dictionary Python (Unofficial)
A Python Library To Web Scrape Urban Dictionary.
Installation
Use the package manager pip to install Urban Dictionary Python.
pip install urbandictionary_python
Usage
import urbandictionary_python
word=""
ubd=urbandictionary_python.UrbanDictionary(word)
print(ubd.meaning())
print(ubd.example())
print(ubd.author())
print(ubd.publishing_date())
print(ubd.mug_link())
print(ubd.front_mug_image())
print(ubd.back_mug_image())
print(ubd.more_meanings())
for i in ubd.more_meanings():
print(i)
for i in ubd.more_meanings():
print(i["meaning"])
for i in ubd.more_meanings():
print(i["example"])
for i in ubd.more_meanings():
print(i["author"])
for i in ubd.more_meanings():
print(i["date"])
for i in ubd.more_meanings():
print(i["mug_back_image"])
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
MIT