mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-21 22:27:13 +08:00
feat: improve the memory system
This commit is contained in:
49
skills/web-fetch/SKILL.md
Normal file
49
skills/web-fetch/SKILL.md
Normal file
@@ -0,0 +1,49 @@
|
||||
---
|
||||
name: web-fetch
|
||||
description: Fetch and extract readable content from web pages
|
||||
homepage: https://github.com/zhayujie/chatgpt-on-wechat
|
||||
metadata:
|
||||
emoji: 🌐
|
||||
requires:
|
||||
bins: ["curl"]
|
||||
---
|
||||
|
||||
# Web Fetch
|
||||
|
||||
Fetch and extract readable content from web pages using curl and basic text processing.
|
||||
|
||||
## Usage
|
||||
|
||||
Use the provided script to fetch a URL and extract its content:
|
||||
|
||||
```bash
|
||||
bash scripts/fetch.sh <url> [output_file]
|
||||
```
|
||||
|
||||
**Parameters:**
|
||||
- `url`: The HTTP/HTTPS URL to fetch (required)
|
||||
- `output_file`: Optional file to save the output (default: stdout)
|
||||
|
||||
**Returns:**
|
||||
- Extracted page content with title and text
|
||||
|
||||
## Examples
|
||||
|
||||
### Fetch a web page
|
||||
```bash
|
||||
bash scripts/fetch.sh "https://example.com"
|
||||
```
|
||||
|
||||
### Save to file
|
||||
```bash
|
||||
bash scripts/fetch.sh "https://example.com" output.txt
|
||||
cat output.txt
|
||||
```
|
||||
|
||||
## Notes
|
||||
|
||||
- Uses curl for HTTP requests (timeout: 20s)
|
||||
- Extracts title and basic text content
|
||||
- Removes HTML tags and scripts
|
||||
- Works with any standard web page
|
||||
- No external dependencies beyond curl
|
||||
Reference in New Issue
Block a user