Explorar el Código

Add BitBucket & GitLab search engines

Kirill Isakov hace 9 años
padre
commit
5b3c9f06eb
Se han modificado 1 ficheros con 24 adiciones y 0 borrados
  1. 24
    0
      searx/settings.yml

+ 24
- 0
searx/settings.yml Ver fichero

56
     engine : bing_news
56
     engine : bing_news
57
     shortcut : bin
57
     shortcut : bin
58
 
58
 
59
+  - name : bitbucket
60
+    engine : xpath
61
+    paging : True
62
+    search_url : https://bitbucket.org/repo/all/{pageno}?name={query}
63
+    url_xpath : //article[@class="repo-summary"]//a[@class="repo-link"]/@href
64
+    title_xpath : //article[@class="repo-summary"]//a[@class="repo-link"]
65
+    content_xpath : //article[@class="repo-summary"]/p
66
+    categories : it
67
+    timeout : 4.0
68
+    disabled : True
69
+    shortcut : bb
70
+
59
   - name : btdigg
71
   - name : btdigg
60
     engine : btdigg
72
     engine : btdigg
61
     shortcut : bt
73
     shortcut : bt
143
     shortcut : gb
155
     shortcut : gb
144
     disabled: True
156
     disabled: True
145
 
157
 
158
+  - name : gitlab
159
+    engine : xpath
160
+    paging : True
161
+    search_url : https://gitlab.com/search?page={pageno}&search={query}
162
+    url_xpath : //li[@class="project-row"]//a[@class="project"]/@href
163
+    title_xpath : //li[@class="project-row"]//span[contains(@class, "project-full-name")]
164
+    content_xpath : //li[@class="project-row"]//div[@class="description"]/p
165
+    categories : it
166
+    shortcut : gl
167
+    timeout : 5.0
168
+    disabled : True
169
+
146
   - name : github
170
   - name : github
147
     engine : github
171
     engine : github
148
     shortcut : gh
172
     shortcut : gh