Skip to main content

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


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)

Uploaded Source

Built Distribution

urbdict-0.1.0-py3-none-any.whl (4.0 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