Add regex to skip ads on ddg

Sidenote: weather tests still fail; I'll fix that eventually
master
Paul Walko 2017-06-07 13:48:41 -04:00
parent 9e8899bce1
commit 5ace33e8df
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ def bing(phenny, input):
bing.commands = ['bing']
bing.example = '.bing swhack'
r_duck = re.compile(r'nofollow" class="[^"]+" href=".+?(http.*?)">')
r_duck = re.compile(r'web-result.*?nofollow.*?href=".+?(http.*?)"', re.DOTALL)
def duck_search(query):
query = query.replace('!', '')