logo

searx

My custom branche(s) on searx, a meta-search engine git clone https://hacktivis.me/git/searx.git
commit: 3282e62ff92f1c2158cb169d2a21a5988766450c
parent 0f81aa8410623e790f4ad01b32e2b37f6258356a
Author: Cqoicebordel <Cqoicebordel@users.noreply.github.com>
Date:   Tue, 27 Jan 2015 22:39:25 +0100

Searchcode engines corrections

Diffstat:

Msearx/engines/searchcode_code.py2+-
Msearx/engines/searchcode_doc.py2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/searx/engines/searchcode_code.py b/searx/engines/searchcode_code.py @@ -42,7 +42,7 @@ def response(resp): search_results = loads(resp.text) # parse results - for result in search_results['results']: + for result in search_results.get('results', []): href = result['url'] title = "" + result['name'] + " - " + result['filename'] repo = result['repo'] diff --git a/searx/engines/searchcode_doc.py b/searx/engines/searchcode_doc.py @@ -35,7 +35,7 @@ def response(resp): search_results = loads(resp.text) # parse results - for result in search_results['results']: + for result in search_results.get('results', []): href = result['url'] title = "[" + result['type'] + "] " +\ result['namespace'] +\