on master help sign in
Merge pull request #1020 from misnyo/gitlab

[fix] gitlab search fixed for proper api usage

commit2040aac936c7c6b5589c0bf98f0189a2c0e374f7 authorAdam Tauber <asciimoo@gmail.com> dateSun 3 Sep 2017, 23:08 (9 years ago) parent806cb089b6307a
1 file changed+7−6
searx/settings.yml+7−6
searx/settings.yml+7−6
@@ -242,15 +242,16 @@ engines:
242242 disabled: True
243243
244244 - name : gitlab
245− engine : xpath
245+ engine : json_engine
246246 paging : True
247− search_url : https://gitlab.com/search?page={pageno}&search={query}
248− url_xpath : //li[@class="project-row"]//a[@class="project"]/@href
249− title_xpath : //li[@class="project-row"]//span[contains(@class, "project-full-name")]
250− content_xpath : //li[@class="project-row"]//div[@class="description"]/p
247+ search_url : https://gitlab.com/api/v4/projects?search={query}&page={pageno}
248+ url_query : web_url
249+ title_query : name_with_namespace
250+ content_query : description
251+ page_size : 20
251252 categories : it
252253 shortcut : gl
253− timeout : 5.0
254+ timeout : 10.0
254255 disabled : True
255256
256257 - name : github