Просмотр исходного кода

Add BitBucket & GitLab search engines

Kirill Isakov 9 лет назад
Родитель
Сommit
5b3c9f06eb
1 измененных файлов: 24 добавлений и 0 удалений
  1. 24
    0
      searx/settings.yml

+ 24
- 0
searx/settings.yml Просмотреть файл

@@ -56,6 +56,18 @@ engines:
56 56
     engine : bing_news
57 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 71
   - name : btdigg
60 72
     engine : btdigg
61 73
     shortcut : bt
@@ -143,6 +155,18 @@ engines:
143 155
     shortcut : gb
144 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 170
   - name : github
147 171
     engine : github
148 172
     shortcut : gh