diff options
| author | Alexandre Flament <alex@al-f.net> | 2021-05-29 08:33:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-29 08:33:41 +0200 |
| commit | a8b070581667ccfae29d6f45816af293945177c8 (patch) | |
| tree | 830c0e5fb7dffb8979a408cc6ba386a5fadc21eb | |
| parent | da111f7fec1c377696ed33a3c97cb5665bb01ab9 (diff) | |
| parent | a8f474b23fcc853464dc0f3ceead15b3e891bf71 (diff) | |
Merge pull request #112 from return42/pypi
[enh] add engine PyPi (XPath)
| -rw-r--r-- | searx/settings.yml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/searx/settings.yml b/searx/settings.yml index 1675bcca7..fb6c67478 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -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 |