雅虎管道:如何输出两个提要之间的差异?
如何在 Yahoo Pipes 中输出两个提要之间的差异?
也就是说,我想要模块 A 中未出现在模块 B 中的所有帖子(按标题过滤)。
我已经找到了如何使用 Unique 运算符获取集合并集,但我找不到明显的运算符来获取集合差异。
示例
假设一家报纸网站发布两个提要:FrontPage.rss 和 Politics.rss,并且政治提要中最有趣的项目也发布在首页提要以及其他项目上。我们想要分别订阅这两个提要,并且我们不希望在我们的头版提要中接收政治文章,因为我们已经在其他地方阅读它们。我们可以直接订阅政治提要,但对于首页提要,我们实际上需要FrontPage.rss 中的所有项目,除了 Politics.rss 中也出现的项目。也就是说,FrontPage 和 Politics 的集合差异(也称为 FrontPage 中 Politics 的相对补充)。
How can one output the difference between two feeds in Yahoo Pipes?
That is to say, I want all the posts from module A which do not occur in module B (filtered by title).
I've found how to get the set union using the Unique operator, but I can't find an obvious operator for getting the set difference.
Example
Let's say a newspaper website publishes two feeds, FrontPage.rss and Politics.rss, and that the most interesting items from the politics feed are also published on the front page feed among other items. We want to subscribe to both feeds separately, and we don't want receive politics articles in our front page feed, because we're already reading them elsewhere. We can subscribe directly to the politics feed, but for the front page feed we actually want all the items from FrontPage.rss except those which also occur in Politics.rss. That is, the set difference of FrontPage and Politics (also known as the relative complement of Politics in FrontPage).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在操作符部分,您应该能够使用“unique”模块根据唯一标识符(例如 url)进行过滤。
In the operators section you should be able to use the "unique" module to filter based on a unique identifier such as a url.
将两个提要放入“Union”模块,然后将输出放入“Unique”模块。
Put both feeds through a "Union" module, then put the output through a "Unique" module.