Update plugins/google.py
This commit is contained in:
parent
0db9662c90
commit
0f78c6dd8e
1 changed files with 1 additions and 4 deletions
|
@ -44,11 +44,8 @@ def google(inp):
|
||||||
content = "No description available."
|
content = "No description available."
|
||||||
else:
|
else:
|
||||||
content = http.html.fromstring(content).text_content()
|
content = http.html.fromstring(content).text_content()
|
||||||
|
|
||||||
if len(content) > 250:
|
|
||||||
content = content[:250] + '...'
|
|
||||||
|
|
||||||
out = '%s :: %s :: %s' % (title, content, result['unescapedUrl'])
|
out = '%s :: %s :: %s' % (result['unescapedUrl'], title, content)
|
||||||
|
|
||||||
out = ' '.join(out.split())
|
out = ' '.join(out.split())
|
||||||
|
|
||||||
|
|
Reference in a new issue