diff --git a/modules/ddg/DDGSearch.py b/modules/ddg/DDGSearch.py index 77aee50..67d0429 100644 --- a/modules/ddg/DDGSearch.py +++ b/modules/ddg/DDGSearch.py @@ -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