Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

Commit

Permalink
Add xpath configuration for PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Webb committed May 28, 2021
1 parent 22a79a4 commit 66d06b0
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions searx/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ engines:
engine : wikipedia
shortcut : wp
base_url : 'https://{language}.wikipedia.org/'

#The fulltext and title parameter is necessary for Wikimini because sometimes it will not show the results and redirect instead
- name: wikimini
engine: xpath
Expand Down Expand Up @@ -892,6 +892,26 @@ engines:
categories: science
timeout : 3.0

- name : pypi
shortcut: pypi
engine: xpath
paging : True
search_url : https://pypi.org/search?q={query}&page={pageno}
results_xpath: /html/body/main/div/div/div/form/div/ul/li/a[@class="package-snippet"]
url_xpath : ./@href
title_xpath : ./h3/span[@class="package-snippet__name"]
content_xpath : ./p
suggestion_xpath : /html/body/main/div/div/div/form/div/div[@class="callout-block"]/p/span/a[@class="link"]
first_page_num : 1
categories: it
about:
website: https://pypi.org
wikidata_id: Q2984686
official_api_documentation: https://warehouse.readthedocs.io/api-reference/index.html
use_official_api: false
require_api_key: false
results: HTML

- name : qwant
engine : qwant
shortcut : qw
Expand Down Expand Up @@ -1281,7 +1301,7 @@ engines:
use_official_api: false
require_api_key: false
results: HTML

- name : dogpile
shortcut : dp
engine : xpath
Expand Down

0 comments on commit 66d06b0

Please sign in to comment.