Modified r_duck reg expr to skip sponsored links

master
Randy 2012-05-21 22:52:31 -04:00
parent 213b83871d
commit 99197b84c8
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ def bing(phenny, input):
bing.commands = ['bing'] bing.commands = ['bing']
bing.example = '.bing swhack' 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): def duck_search(query):
query = query.replace('!', '') query = query.replace('!', '')