mirror of
https://github.com/searxng/searxng
synced 2024-01-01 18:24:07 +00:00
[enh] add engine PyPi (XPath)
Add a XPath configuration for PyPI (Python Package Index) Slightly modified merge of [66d06b05] from searx's [PR 2830]. [PR 2830] https://github.com/searx/searx/pull/2830 [66d06b05] https://github.com/searx/searx/pull/2830/commits/66d06b05 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
da111f7fec
commit
a8f474b23f
@ -860,6 +860,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
|
||||
|
Loading…
Reference in New Issue
Block a user