Browse Source

Merge branch 'master' into wikimedia-projects

Noémi Ványi 5 years ago
parent
commit
7878176bb0
2 changed files with 17 additions and 1 deletions
  1. 3 1
      .travis.yml
  2. 14 0
      searx/settings.yml

+ 3 - 1
.travis.yml

@@ -32,8 +32,10 @@ jobs:
       env: PY=2
     - python: "3.5"
     - python: "3.6"
+    - python: "3.7"
+    - python: "3.8"
     - stage: docker
-      python: "3.6"
+      python: "3.8"
       git:
         depth: false
       services:

+ 14 - 0
searx/settings.yml

@@ -826,6 +826,20 @@ engines:
     engine : seedpeer
     categories: files, music, videos
 
+  - name : rubygems
+    shortcut: rbg
+    engine: xpath
+    paging : True
+    search_url : https://rubygems.org/search?page={pageno}&query={query}
+    results_xpath: /html/body/main/div/a[@class="gems__gem"]
+    url_xpath : ./@href
+    title_xpath : ./span/h2
+    content_xpath : ./span/p
+    suggestion_xpath : /html/body/main/div/div[@class="search__suggestions"]/p/a
+    first_page_num : 1
+    categories: it
+    disabled : True
+
 #  - name : yacy
 #    engine : yacy
 #    shortcut : ya