Install
openclaw skills install tencenthotsearch-skillFetches trending news and articles using Tencent Cloud Online Search API (SearchPro). Supports searching across the entire web or within specific sites, with...
openclaw skills install tencenthotsearch-skill⚠️ BEFORE INSTALLING - Security Notice
This skill requires Tencent Cloud API credentials (SecretId/SecretKey). Please read Security Considerations before providing credentials.
Verify Source: Check the GitHub repository for code audit.
Use Temporary Keys: Only use temporary/least-privileged API keys for testing.
Run in Isolation: Execute in container/VM with non-sensitive output directory.
TencentHotSearch-skill is a trending news and article search tool based on Tencent Cloud Online Search API (SearchPro). It supports web-wide search or site-specific search to retrieve popular articles and news related to keywords.
API Information:
Before installing and using this skill, please carefully read the following security guidelines:
Registry Metadata Inconsistency: The registry metadata claims 'no credentials/config required', but both SKILL.md and the code require a config.json file containing your Tencent SecretId and SecretKey. This is a documentation mismatch that users should be aware of.
Verify Source and Provenance
Inspect the Code
scripts/tencent_hotsearch.py to understand the signing and HTTPS callsUse Minimal/Temporary Credentials
Run in Isolated Environment
output_dir to sensitive system pathsProtect Configuration Files
config.json to version control.gitignore configuration (already set up)chmod 600 config.json (Linux/macOS)If you need higher assurance before installation:
scripts/tencent_hotsearch.py✅ Path Traversal Prevention: Validates output paths to prevent directory traversal attacks
✅ Secret Masking: Masks API keys in error messages and logs
✅ HTTPS Only: All API requests use encrypted HTTPS connections
✅ Official Endpoint: Only accesses official Tencent Cloud API (wsa.tencentcloudapi.com)
✅ Git Protection: .gitignore configured to exclude config.json
✅ Error Handling: Comprehensive error handling with secure credential management
For detailed security recommendations, see CONFIG.md
Invoke this skill when users have the following needs:
pip install -r requirements.txt
Edit the config.json file and fill in your Tencent Cloud API credentials:
{
"secret_id": "YOUR_TENCENT_CLOUD_SECRET_ID",
"secret_key": "YOUR_TENCENT_CLOUD_SECRET_KEY",
"output_dir": "./output"
}
For detailed configuration instructions, refer to CONFIG.md
# Web-wide search (default mode, MD format output)
python scripts/tencent_hotsearch.py "AI" "machine learning" -l 10
# Site-specific search (Tencent.com)
python scripts/tencent_hotsearch.py "AI" "machine learning" -s qq.com -l 10
# Site-specific search (News channel)
python scripts/tencent_hotsearch.py "technology" "innovation" -s news.qq.com -l 15
# Multimodal VR mode search
python scripts/tencent_hotsearch.py "AI" -m 1 -l 10
# Mixed mode search
python scripts/tencent_hotsearch.py "AI" -m 2 -l 20
# Search by time range
python scripts/tencent_hotsearch.py "AI" --from-time 1704067200 --to-time 1706745600
# Filter by industry (Premium)
python scripts/tencent_hotsearch.py "AI" --industry news -l 20
# Save results to specified file
python scripts/tencent_hotsearch.py "AI" "machine learning" -o results.md
# Save results to JSON file
python scripts/tencent_hotsearch.py "AI" "machine learning" -o results.json -f json
# Save results to CSV file
python scripts/tencent_hotsearch.py "AI" "machine learning" -o results.csv -f csv
# Save results to TXT file
python scripts/tencent_hotsearch.py "AI" "machine learning" -o results.txt -f txt
# Print results to console
python scripts/tencent_hotsearch.py "AI" "machine learning" --print
# Custom storage path (relative path)
python scripts/tencent_hotsearch.py "AI" -o output/ai_results.txt -f txt
# Custom storage path (absolute path)
python scripts/tencent_hotsearch.py "technology" -o /path/to/your/output/tech_news.md -f md
| Parameter | Type | Required | Description |
|---|---|---|---|
| keywords | array[string] | Yes | 1-5 search keywords |
| site | string | No | Specify search site (e.g., qq.com, news.qq.com), web-wide search if not specified |
| mode | integer | No | Search mode: 0-natural search (default), 1-multimodal VR, 2-mixed results |
| limit | integer | No | Number of results to return, default 10, options: 10/20/30/40/50 |
| from_time | integer | No | Start time filter (Unix timestamp, seconds) |
| to_time | integer | No | End time filter (Unix timestamp, seconds) |
| industry | string | No | Industry filter: gov/news/acad/finance (Premium version) |
| Argument | Description | Default |
|---|---|---|
keywords | Search keywords (1-5) | - |
-s, --site | Specify search site (e.g., qq.com) | Web-wide search |
-m, --mode | Search mode (0/1/2) | 0 |
-l, --limit | Number of results (10/20/30/40/50) | 10 |
--from-time | Start time (Unix timestamp) | - |
--to-time | End time (Unix timestamp) | - |
--industry | Industry filter (gov/news/acad/finance) | - |
-c, --config | Configuration file path | config.json |
-o, --output | Output file path | - |
-f, --format | Output format (json/csv/txt/md) | md |
--print | Print results to console | False |
{
"keywords": ["artificial intelligence", "machine learning"],
"site": "qq.com",
"mode": 0,
"limit": 10,
"from_time": 1704067200,
"to_time": 1706745600,
"industry": "news"
}
{
"results": [
{
"title": "Article Title",
"summary": "Standard summary...",
"dynamic_summary": "Dynamic summary (Premium version)...",
"source": "Source Platform",
"publishTime": "2024-01-15 10:30:00",
"url": "https://example.com/article",
"score": 0.8978,
"images": ["https://example.com/image1.jpg"],
"favicon": "https://example.com/favicon.ico"
}
],
"total": 10,
"query": {
"keywords": ["artificial intelligence", "machine learning"],
"site": "qq.com",
"mode": 0
}
}
| Parameter | Description | Example |
|---|---|---|
| secret_id | Tencent Cloud API Key ID | AKIDxxxxxxxxxxxxxxxx |
| secret_key | Tencent Cloud API Key | xxxxxxxxxxxxxxxx |
| output_dir | Default output directory | ./output |
Suitable for viewing in Markdown editors, includes formatted titles, links, and metadata.
# Search Results
**Total results:** 10
**Timestamp:** 2024-01-15T10:30:00
---
## 1. Article Title
**Summary:** Content summary...
**Dynamic Summary:** Dynamic summary content...
**Source:** Source Platform
**Time:** 2024-01-15 10:30:00
**Link:** [https://example.com/article](https://example.com/article)
**Relevance:** 0.8978
---
Structured data, suitable for program processing and data analysis.
{
"results": [...],
"total": 10,
"timestamp": "2024-01-15T10:30:00"
}
Table format, suitable for opening in Excel and other tools for data analysis.
Plain text format, suitable for quick reading and copy-paste.
| Value | Description |
|---|---|
| gov | Government and party organs |
| news | Authoritative media |
| acad | Academic (English) |
| finance | Finance |
config.json to version control (Git).gitignore to ignore config.json (already configured)# Clone repository
git clone https://github.com/neuhanli/skills.git
cd skills/TencentHotSearch-skill
# Install dependencies
pip install -r requirements.txt
# Configure API credentials
cp config.example.json config.json
# Edit config.json and fill in your API credentials
MIT License
Created for Agent Skills platform