Browse Source

Merge pull request #287 from return42/azlyrics

[enh] add engine AZLyrics.com (XPath)
Alexandre Flament 3 years ago
parent
commit
39bbd15b39
1 changed files with 19 additions and 0 deletions
  1. 19 0
      searx/settings.yml

+ 19 - 0
searx/settings.yml

@@ -798,6 +798,25 @@ engines:
       require_api_key: false
       results: HTML
 
+  - name: azlyrics
+    shortcut: lyrics
+    engine: xpath
+    timeout: 4.0
+    disabled: true
+    categories: general
+    paging: true
+    search_url: https://search.azlyrics.com/search.php?q={query}&w=lyrics&p={pageno}
+    url_xpath: //td[@class="text-left visitedlyr"]/a/@href
+    title_xpath: //span/b/text()
+    content_xpath: //td[@class="text-left visitedlyr"]/a/small
+    about:
+      website: https://azlyrics.com
+      wikidata_id: Q66372542
+      official_api_documentation:
+      use_official_api: false
+      require_api_key: false
+      results: HTML
+
   # - name: meilisearch
   #   engine: meilisearch
   #   shortcut: mes