forgot to change ddg url back

This commit is contained in:
2017-05-28 00:49:11 -04:00
parent 55839970f2
commit 8598fdcf5e

View File

@@ -129,7 +129,7 @@ r_duck = re.compile(r'nofollow" class="[^"]+" href=".+?(http.*?)">')
def duck_search(query):
query = query.replace('!', '')
query = web.quote(query)
uri = 'https://duckduckgo.com/html/?q=%s&kl=uk-en&ia=calculator' % query
uri = 'https://duckduckgo.com/html/?q=%s&kl=uk-en' % query
bytes = web.get(uri)
m = r_duck.search(bytes)
if m: