novel / py-urbandict

Python module and command line script client for http://urbandictionary.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doesn't work on Python3.8.5

Buster-2002 opened this issue · comments

Following your example I wrote:

        import urbandict
        defs = urbandict.define(search)
        print(defs)
        # gives: [{'word': 'xterm', 'def': 'Godly', 'example': 'I wish', 'category': ''}]

and not the expected

[{'word': 'xterm', 'example': 'I wish i was an xterm', 'def': 'Godly creature, omnipotent, guru in every way imaginable.'}]

Hm, it doesn't seem the problem is related to the Python version, it looks like formatting was changed again.

yeah, and I found the culprit I think....
whenever the handle_endtag function is defined, remove the 'a' tag in the if condition