360 Secure SkillHub
360 安全技能中心

web info skill

该 Skill 通过 Bash 脚本调用 curl 抓取指定网页,解析并输出页面标题、meta 描述、H1-H6 标题、链接及锚文本、图片及 alt 文本和词数统计,支持 JSON、仅链接、仅标题等输出模式;需本地安装 curl 并联网执行。

sangjie123
sangjie123
热度 30.80
最近更新 2026-05-11 17:39:26
分类:搜索依赖:代码执行 / 第三方 API应用场景:研究 / 数据处理 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add web-info-skill
Metadata
name
web-info
description
Extract and display useful information from web pages including title, meta description, headers, and links.
version
1.0.0
metadata
{"openclaw":{"requires":{"bins":["curl"]},"emoji":"🌐","homepage":"https://github.com/openclaw/openclaw"}}

Web Info Extractor

A lightweight web scraping skill that extracts structured information from any webpage.

Features

  • Extract page title and meta description
  • List all headers (H1-H6)
  • Extract all links with their anchor text
  • Display images and their alt text
  • Show page word count
  • JSON output support for easy parsing

Usage

# Basic usage
web-info https://example.com

# Get JSON output
web-info --json https://example.com

# Extract only links
web-info --links-only https://example.com

# Extract only headers
web-info --headers-only https://example.com

Examples

Extract page info

web-info https://news.ycombinator.com

Get structured JSON data

web-info --json https://github.com > github-info.json

Find all links on a page

web-info --links-only https://example.com

Output Format

The skill provides clean, formatted output:

Title: Example Domain
Description: Example meta description
URL: https://example.com

Headers:
  H1: Example Domain
  H2: More information

Links:
  - Example Link (https://example.org)
  - Another Link (https://example.net)

Images:
  - logo.png (alt: "Company Logo")

Statistics:
  - Word count: 150
  - Links: 5
  - Images: 2

Requirements

  • curl (for fetching web pages)

Privacy & Security

  • Does not store any data
  • Only fetches publicly accessible pages
  • Follows robots.txt directives
  • No cookies or authentication stored

License

MIT-0 - Free to use, modify, and distribute