Modified r_duck reg expr to skip sponsored links
parent
213b83871d
commit
99197b84c8
|
@ -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('!', '')
|
||||||
|
|
Loading…
Reference in New Issue