我应该使用哪个库在Common Lisp中生成RSS?

时间:2020-12-02 15:49:40

What's the best library to use to generate RSS for a webserver written in Common Lisp?

使用Common Lisp编写的Web服务器生成RSS的最佳库是什么?

5 个解决方案

#1


3  

Most anything will probably do. Personally, I've been using xml-emitter for my blog's Atom feed, which has worked out well so far.

大多数事情都可能做到。就我个人而言,我一直在使用xml-emitter作为我博客的Atom feed,到目前为止它已经很好用了。

Just choose whichever XML generation library you like and hack away, I'd say. As others have remarked, RSS is simple; it's little work to generate it manually.

我会说,只要选择你喜欢的任何XML生成库,就可以了。正如其他人所说,RSS很简单;手动生成它几乎没有什么工作。

That said, I recommend not generating plain strings directly. Having to deal with quoting data is more of a hassle than installing an XML library, and it's also insecure in case your feed contains data submitted by visitors of your website.

也就是说,我建议不要直接生成普通字符串。必须处理引用数据比安装XML库更麻烦,如果您的Feed包含您网站的访问者提交的数据,那么它也是不安全的。

#2


3  

xml-emitter says it has an RSS 2.0 emitter built in.

xml-emitter说它内置了一个RSS 2.0发射器。

#3


3  

CL-WHO can generate XML pretty easily.

CL-WHO可以很容易地生成XML。

#4


1  

I am not aware of any specific RSS library. But the format is fairly simple so any library that can write xml will do at that level.

我不知道任何特定的RSS库。但格式相当简单,因此任何可以编写xml的库都可以在该级别执行。

You could have e.g. a look at the nuclblog (http://cyrusharmon.org/projects?project=nuclblog) project as that has the capability to generate an RSS feed for the blog entries it maintains.

你可以有例如查看nuclblog(http://cyrusharmon.org/projects?project=nuclblog)项目,因为它能够为其维护的博客条目生成RSS源。

#5


1  

cl-rss-gen is a tiny library (LGPL, depends on CL-WHO) that does some boilerplate work for you (supports generating RSS entries directly from CLOS class instances by specifying which slot maps to which attribute).

cl-rss-gen是一个很小的库(LGPL,依赖于CL-WHO),为您做一些样板工作(支持直接从CLOS类实例生成RSS条目,方法是指定哪个槽映射到哪个属性)。

Take a look at the code before using it, it may give you the idea how it's working and whether you need it or not (as other posters said, you can generate RSS yourself with CL-WHO or any XML generation library).

在使用它之前先看一下代码,它可以让你知道它是如何工作的,以及你是否需要它(正如其他海报所说,你可以用CL-WHO或任何XML生成库自己生成RSS)。

Oh, and sorry for resurrecting a four years old thread, but if anyone searches for similar library, he/she will find the answer here.

哦,抱歉复活了一个四年前的帖子,但如果有人搜索类似的图书馆,他/她会在这里找到答案。

#1


3  

Most anything will probably do. Personally, I've been using xml-emitter for my blog's Atom feed, which has worked out well so far.

大多数事情都可能做到。就我个人而言,我一直在使用xml-emitter作为我博客的Atom feed,到目前为止它已经很好用了。

Just choose whichever XML generation library you like and hack away, I'd say. As others have remarked, RSS is simple; it's little work to generate it manually.

我会说,只要选择你喜欢的任何XML生成库,就可以了。正如其他人所说,RSS很简单;手动生成它几乎没有什么工作。

That said, I recommend not generating plain strings directly. Having to deal with quoting data is more of a hassle than installing an XML library, and it's also insecure in case your feed contains data submitted by visitors of your website.

也就是说,我建议不要直接生成普通字符串。必须处理引用数据比安装XML库更麻烦,如果您的Feed包含您网站的访问者提交的数据,那么它也是不安全的。

#2


3  

xml-emitter says it has an RSS 2.0 emitter built in.

xml-emitter说它内置了一个RSS 2.0发射器。

#3


3  

CL-WHO can generate XML pretty easily.

CL-WHO可以很容易地生成XML。

#4


1  

I am not aware of any specific RSS library. But the format is fairly simple so any library that can write xml will do at that level.

我不知道任何特定的RSS库。但格式相当简单,因此任何可以编写xml的库都可以在该级别执行。

You could have e.g. a look at the nuclblog (http://cyrusharmon.org/projects?project=nuclblog) project as that has the capability to generate an RSS feed for the blog entries it maintains.

你可以有例如查看nuclblog(http://cyrusharmon.org/projects?project=nuclblog)项目,因为它能够为其维护的博客条目生成RSS源。

#5


1  

cl-rss-gen is a tiny library (LGPL, depends on CL-WHO) that does some boilerplate work for you (supports generating RSS entries directly from CLOS class instances by specifying which slot maps to which attribute).

cl-rss-gen是一个很小的库(LGPL,依赖于CL-WHO),为您做一些样板工作(支持直接从CLOS类实例生成RSS条目,方法是指定哪个槽映射到哪个属性)。

Take a look at the code before using it, it may give you the idea how it's working and whether you need it or not (as other posters said, you can generate RSS yourself with CL-WHO or any XML generation library).

在使用它之前先看一下代码,它可以让你知道它是如何工作的,以及你是否需要它(正如其他海报所说,你可以用CL-WHO或任何XML生成库自己生成RSS)。

Oh, and sorry for resurrecting a four years old thread, but if anyone searches for similar library, he/she will find the answer here.

哦,抱歉复活了一个四年前的帖子,但如果有人搜索类似的图书馆,他/她会在这里找到答案。