blog-watcher

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Blog Watcher

Blog Watcher

Monitor RSS and Atom feeds for new articles using the blogwatcher CLI tool.
使用blogwatcher CLI工具监控RSS和Atom feed中的新文章。

When to Use

适用场景

  • Track industry blogs for new posts
  • Monitor competitor websites with RSS feeds
  • Follow news sources
  • Watch for updates on specific topics from multiple sources
  • Set up ongoing surveillance of content sources
  • 追踪行业博客的新发布文章
  • 监控提供RSS feed的竞品网站
  • 关注新闻来源
  • 从多个来源追踪特定主题的更新
  • 对内容来源设置持续监控

Installation

安装

Install blogwatcher CLI:
bash
go install github.com/Hyaxia/blogwatcher/cmd/blogwatcher@latest
安装blogwatcher CLI:
bash
go install github.com/Hyaxia/blogwatcher/cmd/blogwatcher@latest
也可从以下地址下载:https://github.com/Hyaxia/blogwatcher

Quick Start

快速开始

bash
undefined
bash
undefined

Add a blog/feed to track

添加要追踪的博客/feed

blogwatcher add "Tech News" https://example.com/feed.xml
blogwatcher add "Tech News" https://example.com/feed.xml

List all tracked blogs

列出所有已追踪的博客

blogwatcher blogs
blogwatcher blogs

Scan all feeds for new articles

扫描所有feed的新文章

blogwatcher scan
blogwatcher scan

List new articles

列出新文章

blogwatcher articles
blogwatcher articles

Mark article as read

标记文章为已读

blogwatcher read <article-id>
blogwatcher read <article-id>

Mark all articles as read

标记所有文章为已读

blogwatcher read-all
blogwatcher read-all

Remove a blog

移除一个博客

blogwatcher remove "Tech News"
undefined
blogwatcher remove "Tech News"
undefined

Common Workflows

常用工作流

Initial Setup

初始配置

bash
undefined
bash
undefined

Add multiple feeds to track

添加多个要追踪的feed

blogwatcher add "Hacker News" https://news.ycombinator.com/rss blogwatcher add "TechCrunch" https://techcrunch.com/feed/ blogwatcher add "OpenAI Blog" https://openai.com/blog/rss.xml
undefined
blogwatcher add "Hacker News" https://news.ycombinator.com/rss blogwatcher add "TechCrunch" https://techcrunch.com/feed/ blogwatcher add "OpenAI Blog" https://openai.com/blog/rss.xml
undefined

Daily Check

每日检查

bash
undefined
bash
undefined

Scan for new content

扫描新内容

blogwatcher scan
blogwatcher scan

View new articles

查看新文章

blogwatcher articles
blogwatcher articles

Summarize or analyze specific articles

总结或分析特定文章

(use browser-tools or summarize skill as needed)

(按需使用browser-tools或总结skill)

undefined
undefined

Cleanup

清理操作

bash
undefined
bash
undefined

After reviewing, mark all as read

浏览完成后,标记所有内容为已读

blogwatcher read-all
undefined
blogwatcher read-all
undefined

Feed Detection

Feed检测

If you don't know the feed URL, try common patterns:
  • /feed
  • /rss
  • /atom.xml
  • /feed.xml
  • /blog/rss
Or use online feed discovery tools.
如果你不知道feed URL,可以尝试以下常见路径:
  • /feed
  • /rss
  • /atom.xml
  • /feed.xml
  • /blog/rss
也可使用在线feed发现工具。

Output Format

输出格式

Example output when scanning:
$ blogwatcher scan
Scanning 2 blog(s)...

  Tech News
    Source: RSS | Found: 15 | New: 3
  Hacker News
    Source: RSS | Found: 30 | New: 5

Found 8 new article(s) total!
Example article listing:
$ blogwatcher articles
ID   | Blog        | Title                          | Date
-----|-------------|--------------------------------|------------
1    | Tech News   | New AI Model Released         | 2024-01-15
2    | Tech News   | Industry Analysis Q4          | 2024-01-14
3    | Hacker News | Show HN: New coding tool      | 2024-01-15
扫描时的输出示例:
$ blogwatcher scan
Scanning 2 blog(s)...

  Tech News
    Source: RSS | Found: 15 | New: 3
  Hacker News
    Source: RSS | Found: 30 | New: 5

Found 8 new article(s) total!
文章列表示例:
$ blogwatcher articles
ID   | Blog        | Title                          | Date
-----|-------------|--------------------------------|------------
1    | Tech News   | New AI Model Released         | 2024-01-15
2    | Tech News   | Industry Analysis Q4          | 2024-01-14
3    | Hacker News | Show HN: New coding tool      | 2024-01-15

Configuration

配置

The blogwatcher stores data in:
  • Linux/macOS:
    ~/.blogwatcher/
  • Windows:
    %APPDATA%\blogwatcher\
Database file:
blogwatcher.db
(SQLite)
blogwatcher的数据存储路径如下:
  • Linux/macOS:
    ~/.blogwatcher/
  • Windows:
    %APPDATA%\blogwatcher\
数据库文件:
blogwatcher.db
(SQLite)

Limitations

限制

  • Only supports RSS and Atom feeds (not HTML scraping)
  • Requires the target site to have a working feed
  • Some sites may have feed limits or restrictions
  • 仅支持RSS和Atom feed(不支持HTML爬取)
  • 需要目标站点有可用的feed
  • 部分站点可能存在feed访问限制或约束