fix google.find
This commit is contained in:
parent
f7735d30cd
commit
b9634887ff
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ def find(query, max_results=DEFAULT_MAX_RESULTS):
|
||||||
results = []
|
results = []
|
||||||
for match in re.compile(link_re, re.DOTALL).finditer(data):
|
for match in re.compile(link_re, re.DOTALL).finditer(data):
|
||||||
(name, url, desc) = match.group('name', 'url', 'desc')
|
(name, url, desc) = match.group('name', 'url', 'desc')
|
||||||
results.append([(stripTags(name), url, stripTags(desc))])
|
results.append((stripTags(name), url, stripTags(desc)))
|
||||||
if len(results) > max_results:
|
if len(results) > max_results:
|
||||||
results = results[:max_results]
|
results = results[:max_results]
|
||||||
return results
|
return results
|
||||||
|
|
Loading…
Reference in a new issue