DDG module: display redirect link on bang request
This commit is contained in:
parent
073f34af26
commit
eefcf96516
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue