mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-05 18:49:23 +01:00
parent
950aec696e
commit
f9b83ac2de
@ -62,6 +62,7 @@ class DDG(callbacks.Plugin):
|
||||
# DuckDuckGo has a 'lite' site free of unparseable JavaScript
|
||||
# elements, so we'll use that to our advantage!
|
||||
url = "https://duckduckgo.com/lite?" + urlencode({"q": text})
|
||||
self.log.debug("DDG: Using URL %s for search %s", url, text)
|
||||
data = utils.web.getUrl(url).decode("utf-8")
|
||||
soup = BeautifulSoup(data)
|
||||
# Remove "sponsored link" results
|
||||
|
Loading…
Reference in New Issue
Block a user