on master help sign in
[fix] gitlab search fixed for proper api usage
commit9b6307a36518179e7b89d6b1966a1384c52bab5f authormisnyo <misnyo@misnyo.eu> dateThu 31 Aug 2017, 17:18 (9 years ago) parente74aaa7
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