TopRank Skills

Home / Claw Skills / Data Analysis / daum-trends-briefing
Official OpenClaw rules 54%

daum-trends-briefing

Fetch Daum real-time trend TOP10, add one-line context (top news title) + links, and print a 12-line briefing suitable for OpenClaw cron + Telegram announce.

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 daum-trends-briefing 技能。 若已安装,则直接安装 daum-trends-briefing 技能。

Overview

Skill Key
hunkim/daum-trends-briefing
Author
hunkim
Source Repo
openclaw/skills
Version
-
Source Path
skills/hunkim/daum-trends-briefing
Latest Commit SHA
08f2a44a1076d5d462b5b45ace9da1cff4833b01

Extracted Content

SKILL.md excerpt

## What this skill does

Creates a short briefing from **Daum 메인 실시간 트렌드(REALTIME_TREND_TOP)**:

(ClawHub 검증 정책상 바이너리 파일(jpg/png 등)을 스킬에 포함할 수 없어서, 스크린샷은 외부 링크로만 첨부하세요.)

예시 스크린샷(외부 링크): https://github.com/user-attachments/assets/9aefc56b-6f52-4580-b4e5-585bd0e816da

- TOP10 keywords
- For each keyword: fetch Daum search page and extract **one representative title** (usually the first News result)
- Include links
- Print exactly **12 lines** to stdout:
  1) Title line
  2–11) 10 trend lines
  12) `updatedAt: ...`

## Data sources

- Daum homepage: https://www.daum.net/
- Daum search (for each keyword): `https://search.daum.net/search?w=tot&DA=RT1&rtmaxcoll=AIO,NNS,DNS&q=<keyword>`

## How to fetch & parse https://www.daum.net/ (REALTIME_TREND_TOP)

Daum renders a large JSON blob inside the HTML. The real-time trend slot appears as a node with:

- `"uiType":"REALTIME_TREND_TOP"`
- `contents.data.updatedAt`
- `contents.data.keywords` (array of `{ keyword, rank, ... }`)

Parsing approach (used in the script):

1. Download the HTML.
2. Find the first occurrence of `"uiType":"REALTIME_TREND_TOP"`.
3. From that position, locate:
   - `"updatedAt":"..."`
   - `"keywords":[ ... ]`
4. Extract the `keywords` array substring by bracket matching, then `JSON.parse` it.

This avoids having to parse the full page-level JSON assignment.

## How to fetch each keyword’s Daum search page & extract 1 title

For each keyword, request:

`https://search.daum.net/search?w=tot&DA=RT1&rtmaxcoll=AIO,NNS,DNS&q=<encodeURIComponent(keyword)>`

Extraction heuristic (used in the script):

- Prefer the **first** match of the News-like title pattern:
  - `<strong class="tit-g ..."><a href="...">TITLE</a>`
- Strip HTML tags (`<b>...</b>` etc.) and decode basic HTML entities.
- If no title is found, fall back to `Daum 검색 결과`.

## Output format

Example (12 lines):

1. `Daum 실시간 트렌드 TOP10`
2. `1. 키워드: “대표 제목” https://search.daum....

Related Claw Skills