summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2017-09-03 23:08:55 +0200
committerGitHub <noreply@github.com>2017-09-03 23:08:55 +0200
commit2040aac936c7c6b5589c0bf98f0189a2c0e374f7 (patch)
tree51b8a9202e4473028ee1ed8d80a028359f0ccc7c
parent806cb08750e467849a2b4a34d54abd2c7f00ce2f (diff)
parent9b6307a36518179e7b89d6b1966a1384c52bab5f (diff)
downloadsearxng-2040aac936c7c6b5589c0bf98f0189a2c0e374f7.tar.gz
searxng-2040aac936c7c6b5589c0bf98f0189a2c0e374f7.zip
Merge pull request #1020 from misnyo/gitlab
[fix] gitlab search fixed for proper api usage
-rw-r--r--searx/settings.yml13
1 files changed, 7 insertions, 6 deletions
diff --git a/searx/settings.yml b/searx/settings.yml
index 8f57e2e84..3d94ac8fa 100644
--- a/searx/settings.yml
+++ b/searx/settings.yml
@@ -242,15 +242,16 @@ engines:
disabled: True
- name : gitlab
- engine : xpath
+ engine : json_engine
paging : True
- search_url : https://gitlab.com/search?page={pageno}&search={query}
- url_xpath : //li[@class="project-row"]//a[@class="project"]/@href
- title_xpath : //li[@class="project-row"]//span[contains(@class, "project-full-name")]
- content_xpath : //li[@class="project-row"]//div[@class="description"]/p
+ search_url : https://gitlab.com/api/v4/projects?search={query}&page={pageno}
+ url_query : web_url
+ title_query : name_with_namespace
+ content_query : description
+ page_size : 20
categories : it
shortcut : gl
- timeout : 5.0
+ timeout : 10.0
disabled : True
- name : github