DDG module: display redirect link on bang request

This commit is contained in:
nemunaire 2014-04-22 17:00:47 +02:00
commit eefcf96516

View file

@ -10,7 +10,7 @@ class DDGSearch:
def __init__(self, terms):
self.terms = terms
raw = urlopen("https://api.duckduckgo.com/?q=%s&format=xml" % quote(terms), timeout=10)
raw = urlopen("https://api.duckduckgo.com/?q=%s&format=xml&no_redirect=1" % quote(terms), timeout=10)
self.ddgres = xmlparser.parse_string(raw.read())
@property