Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在开发一个 Web 应用程序,并希望使用 SimplePie 来解析大量 RSS 提要。
一个问题是我想知道 SimplePie 在解析 RSS 提要时是否会自动删除所有死链接。这样 RSS 提要的最终输出就没有任何无效链接。
不,不是的。为此,您必须为提要中的每个链接发送 HEAD 请求。这对 SimplePie 来说太贵了,所以你需要自己找代码来做。在 SO 上试试这个例子。