mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +01:00
parent
0079333c80
commit
35677548df
@ -67,7 +67,8 @@ class DDG(callbacks.Plugin):
|
||||
except utils.web.Error as e:
|
||||
irc.error(str(e), Raise=True)
|
||||
soup = BeautifulSoup(data)
|
||||
return soup.find_all('td')
|
||||
# Remove "sponsored link" results
|
||||
return [td for td in soup.find_all('td') if 'result-sponsored' not in str(td.parent.get('class'))]
|
||||
|
||||
def search(self, irc, msg, args, text):
|
||||
"""<text>
|
||||
|
Loading…
Reference in New Issue
Block a user