File: _web_example8.py

package info (click to toggle)
nodebox-web 1.9.4.6-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,900 kB
  • sloc: python: 7,582; ansic: 581; xml: 239; makefile: 2
file content (7 lines) | stat: -rw-r--r-- 168 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
# Definitions from the Urban Dictionary.

import web

definitions = web.urbandictionary.search("human")
for i, d in enumerate(definitions):
    print "%d: %s" % (i, d)