A library for urbandictionary.com
Project description
urbdict
A library for urbandictionary.com
Install:
pip install urbdict
Usage:
Command line:
$ urbdict xterm
xterm
Godly creature, omnipotent, guru in every way imaginable.
Ex: I wish i was an xterm
by Anonymous August 26, 2003
https://www.urbandictionary.com:443/define.php?term=xterm
Python:
$ python3
Python 3.9.12 (main, Jun 1 2022, 06:36:29)
[Clang 12.0.0 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import urbdict
>>> x = urbdict.define("xterm")
>>> print(x)
{'word': 'xterm', 'definition': 'Godly creature, omnipotent, guru in every way imaginable.', 'example': 'I wish i was an xterm', 'contributor': 'by Anonymous August 26, 2003', 'url': 'https://www.urbandictionary.com:443/define.php?term=xterm'}
>>> print(x["definition"])
Godly creature, omnipotent, guru in every way imaginable.
>>>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
urbdict-0.1.0.tar.gz
(3.4 kB
view hashes)