logo

searx

My custom branche(s) on searx, a meta-search engine git clone https://hacktivis.me/git/searx.git
commit: 219f047bf359ce94397241b875639f3aaddb0fe5
parent 01e2648e93e718f84c77aed16326a14f2b498a2e
Author: Alexandre Flament <alex@al-f.net>
Date:   Sun,  6 Nov 2016 09:44:07 +0100

Merge branch 'master' into searchpy2

Diffstat:

Msearx/search.py3++-
Msearx/settings.yml10++++++++++
2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/searx/search.py b/searx/search.py @@ -323,7 +323,8 @@ class Search(object): engine = engines[selected_engine['name']] # skip suspended engines - if engine.suspend_end_time and engine.suspend_end_time <= time(): + if engine.suspend_end_time >= time(): + logger.debug('Engine currently suspended: %s', selected_engine['name']) continue # if paging is not supported, skip diff --git a/searx/settings.yml b/searx/settings.yml @@ -313,6 +313,16 @@ engines: timeout : 4.0 disabled : True + - name : lobste.rs + engine : xpath + search_url : https://lobste.rs/search?utf8=%E2%9C%93&q={query}&what=stories&order=relevance + results_xpath : //li[contains(@class, "story")] + url_xpath : .//span[@class="link"]/a/@href + title_xpath : .//span[@class="link"]/a + content_xpath : .//a[@class="domain"] + categories : it + shortcut : lo + - name : microsoft academic engine : json_engine paging : True