【发布时间】:2014-03-28 04:40:31
【问题描述】:
我想将 24 february 2014 等格式的日期转换为正确的 RSS pubDate 格式(实际上我页面上的 february 是用俄语编写的)。
我有以下代码来创建自己的 RSS -
XPath 获取页面
URL: http://www.tcsbank.ru/about/news-archive/
Extract Using XPath: //li[@class='news-list__item']
Use HTML5 parser: yes
循环
For each *item* in input field
...
PubDate: item.span
emit *all* results
循环
For each *item.pubDate*
Replace
first * january * with *.01.*
first * february * with *.02.*
...
assign results to *item.pubDate*
结果,我的 pubDate 包含格式为 DD.MM.YYYY 的值(并且仅适用于前 10 个月,因为 Replace 仅支持 10 次替换)。哪个日期仍然无效。
我应该如何解决这个问题?
【问题讨论】:
标签: yahoo-pipes