开发者

Yahoo pipes: How to output the difference between two feeds?

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开发者_StackOverflow中文版 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).


In the operators section you should be able to use the "unique" module to filter based on a unique identifier such as a url.


Put both feeds through a "Union" module, then put the output through a "Unique" module.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜