$npx -y skills add waterfeet/DoroPet_V3 --skill web-fetchFetch and extract readable content from web pages. Use for lightweight page access without browser automation.
| 1 | # Web Fetch |
| 2 | |
| 3 | Fetch and extract readable content from web pages using curl and basic text processing. |
| 4 | |
| 5 | ## Usage |
| 6 | |
| 7 | **Important**: Scripts are located relative to this skill's base directory. |
| 8 | |
| 9 | When you see this skill in `<available_skills>`, note the `<base_dir>` path. |
| 10 | |
| 11 | ```bash |
| 12 | # General pattern: |
| 13 | bash "<base_dir>/scripts/fetch.sh" <url> [output_file] |
| 14 | |
| 15 | # Example (replace <base_dir> with actual path from skill listing): |
| 16 | bash "~/chatgpt-on-wechat/skills/web-fetch/scripts/fetch.sh" "https://example.com" |
| 17 | ``` |
| 18 | |
| 19 | **Parameters:** |
| 20 | - `url`: The HTTP/HTTPS URL to fetch (required) |
| 21 | - `output_file`: Optional file to save the output (default: stdout) |
| 22 | |
| 23 | **Returns:** |
| 24 | - Extracted page content with title and text |
| 25 | |
| 26 | ## Examples |
| 27 | |
| 28 | ### Fetch a web page |
| 29 | ```bash |
| 30 | bash "<base_dir>/scripts/fetch.sh" "https://example.com" |
| 31 | ``` |
| 32 | |
| 33 | ### Save to file |
| 34 | ```bash |
| 35 | bash "<base_dir>/scripts/fetch.sh" "https://example.com" output.txt |
| 36 | cat output.txt |
| 37 | ``` |
| 38 | |
| 39 | ## Notes |
| 40 | |
| 41 | - Uses curl for HTTP requests (timeout: 10s) |
| 42 | - Extracts title and basic text content |
| 43 | - Removes HTML tags and scripts |
| 44 | - Works with any standard web page |
| 45 | - No external dependencies beyond curl |