]> jfr.im git - irc/rizon/acid.git/commitdiff
Correct urban dictionary API URL
authorDwarf <redacted>
Wed, 30 Dec 2020 13:15:11 +0000 (13:15 +0000)
committerDwarf <redacted>
Wed, 30 Dec 2020 13:15:11 +0000 (13:15 +0000)
pyva/pyva/src/main/python/internets/api/urbandictionary.py

index 83b5a5da4b1d78045c03db8ac77dace93c3f10c7..9a0eeae6a6fdc0108b78982868d5ecf34290c80b 100644 (file)
@@ -9,7 +9,7 @@ class UrbanDictionary(object):
                if expr in self.last_def:
                        return self.last_def[expr]
                
-               url = 'http://www.urbandictionary.com/iphone/search/define?'
+               url = 'https://api.urbandictionary.com/v0/define?'
                url += urlencode({'term': expr})
                j = get_json(url)
                self.last_def = {expr: j}