Simplify code and change output string to unicode
I wish I had Python3, the whole unicode/normal string thing sucks.
This commit is contained in:
parent
45330ddfb4
commit
f98774032f
1 changed files with 1 additions and 3 deletions
|
@ -48,6 +48,4 @@ def google(inp):
|
||||||
content = http.html.fromstring(content).text_content()
|
content = http.html.fromstring(content).text_content()
|
||||||
content = text.truncate_str(content, 150)
|
content = text.truncate_str(content, 150)
|
||||||
|
|
||||||
out = '{} -- \x02{}\x02: "{}"'.format(result['unescapedUrl'], title, content)
|
return u'{} -- \x02{}\x02: "{}"'.format(result['unescapedUrl'], title, content)
|
||||||
|
|
||||||
return out
|
|
Reference in a new issue