logo

searx

Unnamed repository; edit this file 'description' to name the repository.
commit: 85b81be35b9b53848431da2a4ab8d531990cf963
parent: 99688d2c8e08ba579b67c31181489485f56c92d6
Author: asciimoo <asciimoo@gmail.com>
Date:   Fri, 24 Jan 2014 09:35:27 +0100

[fix] pep8

Diffstat:

searx/engines/startpage.py | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/searx/engines/startpage.py b/searx/engines/startpage.py @@ -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,10 +25,10 @@ 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() - + results.append({'url': url, 'title': title, 'content': content}) - + return results