Modified r_duck reg expr to skip sponsored links

This commit is contained in:
Randy
2012-05-21 22:52:31 -04:00
parent 213b83871d
commit 99197b84c8

View File

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