不能让pubDate在Yahoo! Pipes中输出? [英] Can't get pubDate to output in Yahoo! Pipes?
问题描述
在Yahoo! Pipes中的一个RSS Feed中,我使用Date Formatter模块格式化日期,并使用格式%K,因此它们符合pubDate。在管道输出中,我的四个日期显示如下: Wed,25 Jul 2012 03:30:00 +0000
, Mon,16 Jul 2012 06: 30:00 +0000
, Wed,11 Jul 2012 07:00:00 +0000
和 Wed,27 Jun 2012 13:00:00 +0000
。
In one of my RSS feeds in Yahoo! Pipes, I'm formatting dates using the Date Formatter module and using the format %K so they are pubDate-compliant. In Pipe Output, my four dates appears as follows: Wed, 25 Jul 2012 03:30:00 +0000
, Mon, 16 Jul 2012 06:30:00 +0000
, Wed, 11 Jul 2012 07:00:00 +0000
, and Wed, 27 Jun 2012 13:00:00 +0000
.
但是,在RSS提要输出中,这些日期都不显示。他们格式不正确吗?为什么Yahoo! Pipes不输出这些日期?
However, in the RSS feed output, none of these dates appear. Are they formatted incorrectly? Why does Yahoo! Pipes not output these dates?
推荐答案
所以我现在意识到,我需要输出日期到 y:published
而不是 pubDate
。这似乎没有被广泛记录。甚至Googling y:published
不会返回很多结果。
Okay, so I now realize that I need to output dates to y:published
rather than pubDate
. This doesn't seem to be widely documented. Even Googling y:published
doesn't return many results.
以下是更详细的步骤:
- 您有一个易于阅读的日期,如
2013年1月8日
在自己的字段,例如pubDate
(名称并不重要;它仅用于步骤2
)。 - 将您的Feed连接到
循环
模块。在该模块中,放置Date Builder
模块,并指定找到日期的字段(例如pubDate
) - 仍然在
循环
模块中,选择将结果分配给并输入item.y:published
。
- You have an easy-to-read date such as
8 Jan 2013
in its own field, such aspubDate
(name doesn't matter; it's just used inStep 2
). - Connect your feed to a
Loop
module. Inside that module, put theDate Builder
module, and specify the field where the date is found (such aspubDate
). - Still in the
Loop
module, select "assign results to" and enteritem.y:published
.
应该在 pubDate
字段,因此应该可以在任何RSS阅读器中读取。
That should output the date in the RSS output in the pubDate
field, and it should therefore be readable in any RSS reader.
这篇关于不能让pubDate在Yahoo! Pipes中输出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!