1
0
mirror of https://github.com/searxng/searxng.git synced 2024-10-02 17:40:18 +02:00

[fix] pep8

This commit is contained in:
asciimoo 2014-01-24 09:35:27 +01:00
parent 99688d2c8e
commit 85b81be35b

View File

@ -4,6 +4,7 @@ from lxml import html
base_url = None
search_url = None
def request(query, params):
global search_url
query = urlencode({'q': query})[2:]
@ -24,7 +25,7 @@ def response(resp):
url = link.attrib.get('href')
title = link.text_content()
content =''
content = ''
if len(result.xpath('./p[@class="desc"]')):
content = result.xpath('./p[@class="desc"]')[0].text_content()