Merge pull request #73 from vtluug/fix_ddg_ads

Add regex to skip ads on ddg
master
mutantmonkey 2017-06-09 03:37:54 +00:00 committed by GitHub
commit 89e567a494
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('!', '')