Skip to content

Commit

Permalink
update rss-atom-json-feed
Browse files Browse the repository at this point in the history
  • Loading branch information
qwertyyb committed Oct 7, 2024
1 parent a45b9e6 commit 95ea6e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions data/articles/rss-atom-json-feed/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"title":"RSS、Atom 和 JSON Feed","content":"{\"type\":\"doc\",\"content\":[{\"type\":\"paragraph\",\"attrs\":{\"align\":\"left\"},\"content\":[{\"type\":\"text\",\"text\":\"这三种都是信息聚合协议,主要用于告知网站信息,以及网站有什么内容,常用于博客网站。博客网站遵守这些协议最终输出 feed,然后订阅软件遵循这些协议解析用户订阅的 feed,最终呈现给用户已订阅网站的内容。\"}]},{\"type\":\"paragraph\",\"attrs\":{\"align\":\"left\"},\"content\":[{\"type\":\"text\",\"text\":\"这三个的关系总体来说 RSS 和 Atom 都是基于 XML 的,RSS 更早一些,后面觉得 RSS 太混乱了就把 Atom 搞出来了,由 IETF 建立起了统一的规范,它有两个规范文件,一个是 \"},{\"type\":\"text\",\"marks\":[{\"type\":\"link\",\"attrs\":{\"href\":\"https://datatracker.ietf.org/doc/html/rfc4287\"}}],\"text\":\"RFC 4278 atom 文件协议\"},{\"type\":\"text\",\"text\":\" 另一个是 \"},{\"type\":\"text\",\"marks\":[{\"type\":\"link\",\"attrs\":{\"href\":\"https://datatracker.ietf.org/doc/html/rfc5023\"}}],\"text\":\"RFC 5023 Atom 发布协议\"},{\"type\":\"text\",\"text\":\" 。\"}]},{\"type\":\"paragraph\",\"attrs\":{\"align\":\"left\"},\"content\":[{\"type\":\"text\",\"text\":\"而 JSON Feed 顾名思义当然就是基于 JSON 格式的 Feed 协议,这也是它的优势——相对于 XML,JSON 的解析显然更加简单。目前 \"},{\"type\":\"text\",\"marks\":[{\"type\":\"link\",\"attrs\":{\"href\":\"https://www.jsonfeed.org/version/1.1/\"}}],\"text\":\"JSON Feed 的最新协议\"},{\"type\":\"text\",\"text\":\" 是 1.1 版本,简单看了一下 JSON Feed 协议,相对于 RSS 和 Atom,这个协议确实是简单明了。\"}]},{\"type\":\"paragraph\",\"attrs\":{\"align\":\"left\"},\"content\":[{\"type\":\"text\",\"text\":\"后续目标:\"}]},{\"type\":\"paragraph\",\"attrs\":{\"align\":\"left\"},\"content\":[{\"type\":\"text\",\"text\":\"先实现 JSON Feed,然后转为 atom,这样应该就能覆盖大多的订阅端了。\"}]},{\"type\":\"paragraph\",\"attrs\":{\"align\":\"left\"}}]}","createdAt":"2024-10-07T12:09:22.503Z","updatedAt":"2024-10-07T13:43:59.054Z"}

0 comments on commit 95ea6e6

Please sign in to comment.