返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
s

social-reader

Social media content scraping and automation skill. Supports real-time single post reading, as well as scheduled batch patrol, LLM distillation, and review notifications.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
386
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

social-reader

# Social Reader Skill This skill provides a social media content scraping and monitoring workflow. It offers two usage modes: - **Interactive Mode**: Agent fetches a single post in real-time for reading, discussion, or reply generation within a conversation. - **Pipeline Mode**: Background batch patrol of sources, with LLM distillation and review notifications. ## Dependencies ```bash pip install requests ``` ## Configuration Files | File | Purpose | |------|---------| | `prompt.txt` | LLM system prompt for the Processor node | | `sources.json` | List of monitored accounts and fetch intervals (pipeline mode) | | `input_urls.txt` | Manually entered post URLs (one per line, `#` for comments) | | `seen_ids.json` | Deduplication cache for seen post IDs (pipeline mode only) | | `pending_tweets.json` | Queue of unprocessed posts from the Watcher | | `drafts.json` | LLM-distilled drafts from the Processor | | `archive.json` | Archived history records | ### Environment Variables (required only for Pipeline Mode Processor) | Variable | Description | Default | |----------|-------------|---------| | `LLM_API_KEY` | LLM API key (required) | None | | `LLM_BASE_URL` | API endpoint | `https://api.openai.com/v1` | | `LLM_MODEL` | Model name | `gpt-4o-mini` | --- ## Mode 1: Agent Interactive Call (Recommended) When a user sends a social media post link and asks you to "read and discuss" or "generate a quality reply", **call `fetcher.py` directly — do NOT use `run_pipeline.py`**. `run_pipeline.py` triggers deduplication cache, fixed LLM distillation, and browser popups, which are unsuitable for interactive scenarios. ### Usage Example ```python import sys skill_dir = r"d:\AIWareTop\Agent\openclaw-skills\social-reader" if skill_dir not in sys.path: sys.path.append(skill_dir) from fetcher import get_tweet result = get_tweet("https://x.com/user/status/123456") if result.get("success"): content = result["content"] # Now you can discuss the content with the user or generate a reply ``` ### `get_tweet()` Return Structure ```json { "source": "fxtwitter", "success": true, "type": "tweet", "content": { "text": "Post body text", "author": "Display name", "username": "Username handle", "created_at": "Publish time", "likes": 123, "retweets": 45, "views": 6789, "replies": 10, "media": ["image_url_1", "image_url_2"] } } ``` When `type` is `"article"` (long-form post), `content` additionally contains: - `title`: Article title - `preview`: Preview text - `full_text`: Full article body (Markdown format) - `cover_image`: Cover image URL This call is completely stateless — it writes no cache files and triggers no notification services. --- ## Mode 2: Background Pipeline Batch Processing Use `run_pipeline.py` to chain Watcher → Processor → Action nodes. Suitable for scheduled tasks or batch processing. ### Three Core Nodes 1. **Watcher** (`watcher.py`) - Reads `input_urls.txt` or `sources.json`, deduplicates via `seen_ids.json`, writes new posts to `pending_tweets.json`. 2. **Processor** (`processor.py`) - Reads `pending_tweets.json`, calls LLM to generate commentary, outputs to `drafts.json`. - Requires `LLM_API_KEY` environment variable. 3. **Action** (`notifier.py`) - Starts a local HTTP review server (port 18923), opens a browser review page with approve/reject/rewrite/archive controls. ### CLI Examples ```bash # Full pipeline python run_pipeline.py # Specific URL python run_pipeline.py https://x.com/elonmusk/status/123456 # Single node execution python run_pipeline.py --watch-only python run_pipeline.py --process-only python run_pipeline.py --notify-only ```

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 social-reader-1776289669 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 social-reader-1776289669 技能

通过命令行安装

skillhub install social-reader-1776289669

下载

⬇ 下载 social-reader v1.0.0(免费)

文件大小: 17.32 KB | 发布时间: 2026-4-16 18:14

v1.0.0 最新 2026-4-16 18:14
Initial release of Social Reader: a social media content scraping and monitoring skill.

- Supports real-time single post reading with interactive fetcher.
- Enables batch patrol mode with deduplication, LLM distillation, and review notifications.
- Modular design: fetcher (interactive), watcher, processor (LLM-driven), and notifier nodes.
- Customizable via configuration files and environment variables.
- CLI commands provided for full pipeline or individual steps.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部