forgot to change ddg url back

master
Paul Walko 2017-05-28 00:49:11 -04:00
parent 55839970f2
commit 8598fdcf5e
1 changed files with 1 additions and 1 deletions

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: