mirror of
https://github.com/searxng/searxng.git
synced 2024-09-12 16:30:33 +02:00
Merge pull request #112 from return42/pypi
[enh] add engine PyPi (XPath)
This commit is contained in:
commit
a8b0705816
@ -860,6 +860,26 @@ engines:
|
|||||||
categories: science
|
categories: science
|
||||||
timeout : 3.0
|
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
|
- name : qwant
|
||||||
engine : qwant
|
engine : qwant
|
||||||
shortcut : qw
|
shortcut : qw
|
||||||
|
Loading…
Reference in New Issue
Block a user