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
累計下載
4644
星標
4
全站排名
#2,053
全站前 41% · 「資料分析」前 42%
平台累計安裝累計下載星標評論
ClawHub ↗121367831
SkillHub ↗87146444—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

接受帖子編號或連結,下載正文頁並清洗排版,同時抓取帖子元資訊與評論,合成單份 Markdown 便於閱讀或作為模型輸入。依賴 uv,首次執行會自動建虛擬環境裝依賴。除非明確要求,不要把全文或摘要直接輸出到對話裡,需要登入或反爬的站點仍可能失敗。

資料釋出於 2026-10-27

可以用來做什麼

  • 把一條長討論整理成可讀文字
  • 抓取帖子內容作為模型輸入

什麼時候用

  • 想離線讀一條 HackerNews 討論時
  • 需要把網頁正文轉成 Markdown 時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

把這個 HackerNews 連結抓成 Markdown
抓一下這個帖子連同評論,存成檔案

月度資料趨勢

累計下載4644
3092392647592026-03 · 累計下載 34292026-05 · 累計下載 38012026-06 · 累計下載 32072026-07 · 累計下載 40572026-08 · 累計下載 41382026-09 · 累計下載 464426-0326-09
星標4
3442026-03 · 星標 32026-05 · 星標 42026-06 · 星標 32026-07 · 星標 42026-08 · 星標 42026-09 · 星標 426-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-094644—4
2026-084138+2.0%4
2026-074057+26.5%4
2026-063207-15.6%3
2026-053801—4
2026-033429—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萬★ 114Peter Steinberger

guoqiao 的其他技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。