Skip to content

Skilemon/searxng2api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 

Repository files navigation

Convert the SearXNG service output from HTML to JSON for publicly available services on the internet.

把在互联网上公开的 SearXNG 服务由 HTML 输出转为 Json 输出。

Features (特性)

  • Open-source, easy to deploy, and free. (开源,易于部署,且完全免费)
  • Proxy SearXNG Service. (代理 SearXNG 服务)
    • Select highly available port from the official public instances. (从官方实例从筛选高可用性的接口)
    • Proxy /config request. (代理 /config 请求)
    • Proxy /search request. (代理 /search 请求)
    • HTML to JSON. (HTML 输出转为 Json 输出)

Environment Variables (环境变量)

BASE_URL (optional/可选)

Forcefully specify the address of the service to be proxied. (强行指定需要代理的服务地址)

Example: https://example.com

MORE_RESULT (optional/可选)

Ignore the contents of the engines parameter for more search results. (忽略 engines 参数的内容以获取更多搜索结果)

Example: enable

Updates (更新记录)

2025-04-06

  1. Added MAX_RESULT variable to control whether the engines parameter is ignored. (新增 MAX_RESULT 变量来控制是否忽略 engines 参数)

2025-04-05

  1. Changed the method of extracting data from regular matching to HTMLRewriter API. (提取数据的方法由正则匹配改为 HTMLRewriter API)
  2. Support for categories=images search. (支持 categories=images 的搜索)

2025-04-04

  1. By BASE_URL variables to proxy the specified SearXNG service. (通过 BASE_URL 变量来代理指定的 SearXNG 服务)
  2. Obtain the list of available instances through the /list request. (通过 /list 请求获取可用的实例列表)

2025-03-27

  1. Add blacklist list, exclude abnormal instance addresses. (新增黑名单列表,排除异常实例地址)
  2. Optimize the logic for judging service availability. (优化服务可用性的判断逻辑)

2025-03-24

  1. Ignore the specified engines parameter. (忽略指定的 engines 参数)

2025-03-23

  1. Re-evaluate the availability of SearXNG service from multiple aspects. (从多个方面重新判断 SearXNG 服务的可用性)

2025-03-22

  1. First release. (第一版)

Quickstart (快速开始)

Use (直接使用)

Enter the following address into Cherry Studio or other applications. (把以下地址填入 Cherry Studio 或其它应用中)

Deployment (自行部署)

  1. A Cloudflare account. (一个 Cloudflare 账户)
  2. Open your Cloudflare Workers page. (打开你的 Cloudflare Workers 页面)
  3. Create a new project. (新建一个项目)
  4. Copy the content of the worker.js file in this project to the one you just created and save it. (将本项目中 worker.js 文件的内容复制到你刚刚新建的项目里保存即可)

About

Convert the SearXNG service output from HTML to JSON for publicly available services on the internet.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors