This project provides a custom search engine integration for SearxNG using the Tencent Cloud TMS (Text Mining Service) API. It allows users to leverage Tencent's AI-enhanced search capabilities within the SearxNG framework.
- Tencent Cloud TMS Integration: Perform searches using the Tencent TMS API.
- SearxNG Compatibility: Formats results in the standard SearxNG structure (
title
,url
,content
). - Lightweight: No paging support, optimized for simple, fast queries.
- Error Handling: Robust parsing with fallback values for missing data.
- Python 3.6+
- SearxNG installed and configured
- Tencent Cloud account with TMS API access
SECRET_ID
andSECRET_KEY
from Tencent Cloud
- Clone this repository:
git clone https://github.com/yourusername/tms-searxng-engine.git
- Copy tms.py to the searx/engines/ directory of your SearxNG installation:
cp tms.py /path/to/searxng/searx/engines/
-
Configure your Tencent Cloud credentials: Edit tms.py and replace
SECRET_ID
andSECRET_KEY
with your Tencent Cloud credentials. -
Restart your SearxNG instance to load the new engine.
Add Tencent TMS to your enabled engines in the SearxNG configuration (settings.yml): yaml
engines:
- name: Tencent TMS
Perform a search via the SearxNG interface, and results from Tencent TMS will appear when the engine is selected.