哪个最常用? RSS 还是 Atom?哪一个更适合构建?

发布于 2024-09-14 10:15:10 字数 293 浏览 4 评论 0原文

我正在考虑在我的项目中使用 RSS 或 Atom,同时还使用我的项目专门使用的一些我自己的特殊属性来“增强”提要。

所以我有两个问题:

1)RSS 和 Atom 在网络上和大型网站中使用最多的是哪一个?

2)哪个最适合通过添加我自己的标签来构建?

更新:

所以 RSS 是最常用的,但我应该选择 Atom,因为我需要对提要进行自己的调整?如果 RSS 更受欢迎,为什么不选择它呢?为什么 Google 不选择它?

I am thinking of using either RSS or Atom in my project, but also "enhancing" the feed with some of my own special attributes specifically used by my project.

So I have two questions:

1) Which is most used of RSS and Atom on the web and by the big sites?

2) Which is most suitable to be build from by adding my own tags?

Update:

So RSS is most used, but I should pick Atom since I need to make my own tweaks on a feed? If RSS is more popular, why not pick that? Why didn't Google pick that?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

自控 2024-09-21 10:15:10

有一天,我对联合组织和出版格式真正感兴趣。我知道 RSS 0.91/1.0/2.0 和 Atom 1.0(以及 0.3 版本)的所有怪癖。 Atom 的诞生基本上是为了从 RSS 体验中创造出更完整的东西,该体验大致仅包含 Dave Winer 和 Netscape 的规范(现在只有 RSS 2.0 具有实际意义,其规范在这里:http://cyber.law.harvard.edu/rss/rss.html)。 Atom 是由 Sam Ruby 发起的,然后被一个由精明人士组成的委员会采用和开发,它产生了两件事:基于 XML 的联合格式和发布协议。自 2005 年以来,Atom 成为 IETF 标准,在我看来,它比 RSS 更完整、更规范。

就采用而言,我认为从原始数据来看,RSS 仍然具有优势。许多网站决定坚持使用他们已有的版本 (RSS),播客通常也是在 RSS 上完成的。顺便说一句,有很多网站都提供这两种服务。

至于扩展格式,你的第二个问题,Atom 是在创建时考虑到这一点的,所以你应该沿着这条路走。 Google GData 格式基本上是 Atom 格式的扩展:https://developers.google.com /gdata/docs/1.0/elements

There was a day when I was really interested in syndication and publishing formats. I knew all the quirks of RSS 0.91/1.0/2.0 and Atom 1.0 (and the 0.3 version). Atom was basically born to create something more complete out of the RSS experience which consisted roughly only on the very specifications of Dave Winer's and Netscape's (now only the RSS 2.0 makes practical sense and its specification is here: http://cyber.law.harvard.edu/rss/rss.html). Atom was started by Sam Ruby, then was adopted and developed by a committee of savvy people and it resulted in two things: an XML based syndication format and a publishing protocol. Since 2005 Atom is an IETF standard and in my opinion more complete and better specified than RSS.

As of adoption I think that in raw numbers RSS is still in advantage. A lot of sites decided to stick with the version they already had in place (RSS) and podcasting is usually done on RSS too. There a ton of websites offering both by the way.

As of expanding the format, your second question, Atom has been created with this in mind so you should go down that route. Google GData format is basically an extension of the Atom format: https://developers.google.com/gdata/docs/1.0/elements

埖埖迣鎅 2024-09-21 10:15:10

Atom 绝对是值得追求的标准。

我假设您正在使用该标准来共享(或移动)信息 - 所以它就像一个管道,您的信息沿着管道填充。通过采用 Atom,您可以确信管道的两端对于其中的内容是一致的。它更受欢迎&怀念RSS。

Atom is absolutely the standard to go for.

I presume you're using the standard to share (or move) information - so it's like a pipe that your information is padding along. By adopting Atom you can be confident that both ends of the pipe are in agreement about what's in there. It's more hit & miss with RSS.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文