guoqiao

HackerNews Extract

数据分析v0.1.5
作者:guoqiao更新于 2026-05-11共 6 个版本 · 最新版本发布于 2026-02-07hn-extract@clawhub_guoqiao/hn-extract
网页抓取

据 AlphaMoat 统计,截至 2026-09,HackerNews Extract 累计下载 4,644 次、获 4 个星标,在全部 5,078 个 AI 技能中排名第 2,053 位,在「数据分析」分类(399 个)中排名第 164 位。

累计安装
871
累计下载
4,644
星标
4
全站排名
#2,053
全站前 41% · 「数据分析」前 42%
平台累计安装累计下载星标评论
ClawHub ↗1213,67831
SkillHub ↗8714,6444—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

接受帖子编号或链接,下载正文页并清洗排版,同时抓取帖子元信息与评论,合成单份 Markdown 便于阅读或作为模型输入。依赖 uv,首次运行会自动建虚拟环境装依赖。除非明确要求,不要把全文或摘要直接输出到对话里,需要登录或反爬的站点仍可能失败。

资料发布于 2026-10-27

可以用来做什么

  • 把一条长讨论整理成可读文本
  • 抓取帖子内容作为模型输入

什么时候用

  • 想离线读一条 HackerNews 讨论时
  • 需要把网页正文转成 Markdown 时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

把这个 HackerNews 链接抓成 Markdown
抓一下这个帖子连同评论,存成文件

月度数据趋势

累计下载4,644
3,0923,9264,7592026-03 · 累计下载 3,4292026-05 · 累计下载 3,8012026-06 · 累计下载 3,2072026-07 · 累计下载 4,0572026-08 · 累计下载 4,1382026-09 · 累计下载 4,64426-0326-09
星标4
3442026-03 · 星标 32026-05 · 星标 42026-06 · 星标 32026-07 · 星标 42026-08 · 星标 42026-09 · 星标 426-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-094,644—4
2026-084,138+2.0%4
2026-074,057+26.5%4
2026-063,207-15.6%3
2026-053,801—4
2026-033,429—3

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

2.2 KB · ClawHub v0.1.5
---
name: hn-extract
description: Extract a HackerNews post (article + comments) into single clean Markdown for quick reading or LLM input.
metadata:  {"openclaw":{"always":true,"emoji":"🦞","homepage":"https://github.com/guoqiao/skills/blob/main/hn-extract/hn-extract/SKILL.md","os":["darwin","linux","win32"],"tags":["hn","hackernews","comments","extract","markdown","python","uv","scraper","rss","reader","summarize"],"requires":{"bins":["uv"]}}}
---

# HackerNews Extract

Extract a HackerNews post (article + comments) into single clean Markdown for quick reading or LLM input.
展开全部(共 53 行)
see [Examples](https://github.com/guoqiao/skills/blob/main/hn-extract/examples)

## What it does
- Accepts an HackerNews id or url
- Download the linked article HTML, cleans and formats it.
- Fetches the Hacknews post metadata and comments.
- Outputs a readable combined markdown file with original article, threaded comments, and key metadata.

## Requirements

- `uv` installed and in PATH.

## Install

No install beyond having `uv`.
Dependencies will be installed automatically by `uv` into to a dedicated venv when run this script.

## Usage Workflow (Mandatory for Agents)

When an agent is asked to extract a HackerNews post:
1.  **Run the script** with an output path: `uv run --script ${baseDir}/hn-extract.py <input> -o /tmp/hn-<id>.md`.
2.  **Send ONE combined message:** Upload the file and ask the question in the *same* tool call. Use the `message` tool (`action=send`, `filePath="/tmp/hn-<id>.md"`, `message="Extraction complete. Do you want me to summarize it?"`).
3.  **Do not** output the full text or a summary directly in the chat unless specifically requested.

## Usage

```bash
# run as uv script
uv run --script ${baseDir}/hn-extract.py <hn-id|hn-url|path/to/item.json> [-o path/to/output.md]

# Examples
uv run --script ${baseDir}/hn-extract.py 46861313 -o /tmp/output.md
uv run --script ${baseDir}/hn-extract.py "https://news.ycombinator.com/item?id=46861313"
```

- Omit `-o` to print to stdout.
- Directories for `-o` are created automatically.

## Notes
- Retries are enabled for HTTP fetches.
- Comments are indented by thread depth.
- Sites requires authentication or blocks scraping may still fail.

「数据分析」分类下的热门技能

AdMapix数据分析

AdMapix 的取数层:把广告与应用相关的查询转成接口调用,只回原始 JSON。

↓ 36.6万★ 304fly0pants
Tavily Search数据分析

走 Tavily 检索公开网页,返回带链接与摘要的结构化结果。

↓ 12.2万★ 286Xiaoran Li
Data Analysis数据分析

把数据库、表格与导出的原始数据变成可决策结论的数据分析技能。

↓ 10.1万★ 244Iván
Stock Analysis数据分析

用 Yahoo Finance 数据做股票与加密货币分析、组合跟踪的技能。

↓ 7.5万★ 299udiedrichsen
Stock Watcher数据分析

管理本地自选股清单,并按代码汇总同花顺行情与近期表现的技能。

↓ 6.5万★ 122Robin797860
全国招标中标查询及分析【知了标讯】数据分析

全网招中标数据查询与分析助手。当用户涉及以下任何场景时,必须使用此SKILL:查询招标/中标公告、搜索标讯、查找临期/即将到期项目、商机预测、推荐潜在投标供应商、分析公司主营业务/历史中标、查询公司上下游合作客户与供应商、分析竞争对手/竞对企业、查询Top采购单位/Top中标单位/Top中标品牌、招中标数据统计分析(按月/季/年/省份/品牌等维度)、查询品牌型号历史中标单价/价格趋势、市场分析/行业分析/采购寻源/渠道拓展等采购与投标相关场景。即使用户没有提到「知了标讯」,只要涉及招投标、采购、中标、供应商、竞争对手等关键词,都应使用本SKILL。

↓ 5.6万★ 13user_98035bfb
Blogwatcher数据分析

用命令行监控博客与 RSS/Atom 源的更新。

↓ 5.4万★ 75Peter Steinberger
Model Usage数据分析

汇总 Codex 或 Claude 按模型计费的使用成本。

↓ 5.0万★ 114Peter Steinberger

guoqiao 的其他技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。