我应该在PHP中使用哪种RSS解析器? [英] What RSS parser should I use in PHP?
问题描述
我正在搜索用PHP编写的RSS解析器.问题不在于我找不到一个.问题是太多了,很难决定要使用哪一个(特别是当我没有使用它们的经验并尝试使用它们时,会非常耗时).
I am searching an RSS parser written in PHP. The problem is not that I cannot find one. The problem is that there are too many and it's hard to decide which one to use (especially when I have no experience with them and to try them is too time consuming).
有人可以推荐我一个不错的" RSS解析器吗?
Can anybody recommend me a "good" RSS parser?
以下要求对我很重要(按重要性顺序排列):
The following requirements are important to me (given in order of importance):
- 它能够提取提要中给出的所有信息(不仅标题,描述和链接,而且还包括提要中的所有内容,例如提要作者,提要图标,项标签等).
- 它不仅应该能够读取RSS提要,而且还可以读取Atom提要.
- 应该能够破坏" RSS(Atom)提要.
- 它应该易于使用.
推荐答案
我的实际答案是您是否尝试过 SimplePie ?",这是一个非常好的XML解析器,但您必须查看其 demo 看看它如何处理坏的提要:-)
My defacto answer will be "have you tried SimplePie?", it's a very good XML parser but you'll have to have a look at their demo to see how it handles broken feeds :-)
这篇关于我应该在PHP中使用哪种RSS解析器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!