Yahoo Pipes如何使用多个提要截断每个提要的项目 [英] Yahoo Pipes how to truncate items per feed with multiple feeds

查看:93
本文介绍了Yahoo Pipes如何使用多个提要截断每个提要的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Yahoo Pipe,我通过OPML文件引入了许多提要.我不想使用截断来限制导出的最终项目数,而是要限制每个提要的项目数.因此,如果我有60个供稿,则我希望每个供稿都有最新的20个项目,而不是合并供稿的最新20个项目.

I have a Yahoo Pipe where I bring in a number of feeds via an OPML file. Rather than using truncate to limit the resulting number of items that get exported, I want to limit the number of items on a per feed basis. So if I have 60 feeds I want the latest 20 items from each one, not the latest 20 from the combined feeds.

推荐答案

您可以通过创建2个管道来做到这一点:

You can do this by creating 2 pipes:

  1. 获取提要(60个中的一个)并在20个项目后被截断的管道
  2. 另一个遍历提要URL的URL,每个URL都调用第一个管道

这是第一个管道的示例:

Here's an example of the first pipe:

http://pipes.yahoo.com/pipes/pipe.info? _id = f6d1e5fa8873064f0265352e9ea9cd34

这是第二个例子:

http://pipes.yahoo.com/pipes/pipe.info? _id = 4b86c5d956b2f99a460a0520ff8c55b2

这篇关于Yahoo Pipes如何使用多个提要截断每个提要的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆