forgot to remove debug print statement~

This commit is contained in:
Ryan Hitchman 2009-04-16 21:53:59 -06:00
parent 9deb8e244a
commit 61a8706fed
1 changed files with 3 additions and 5 deletions

View File

@ -1,6 +1,6 @@
from lxml import html
import lxml
import urllib
import hook
@hook.command('u')
@ -12,11 +12,9 @@ def urban(inp):
url = 'http://www.urbandictionary.com/define.php?term=' + \
urllib.quote(inp.strip(), safe='')
page = html.parse(url)
page = lxml.html.parse(url)
defs = page.xpath("//div[@class='definition']")
print repr(defs[0].text_content())
if not defs:
return 'no definitions found'