将 RSS 提要拆分为单独的提要
我正在尝试找到一种方法,根据关键字匹配将单个 RSS 提要拆分为单独的提要。
Yahoo Pipes 是我的第一个想法,但我找不到实现的方法。尽管 Pipes 具有分割模块,但任何管道都只有一个可用的输出模块。所以我不明白如何从管道中获得不止一份饲料。
这样做的全部目的是使单个密集提要在 Google Reader 中更易于管理。 (嘿谷歌:一些 Gmail 风格的过滤器怎么样?!)
[澄清开始]
我设想了一个主要的提要,然后根据某些关键字过滤构建“子提要”。问题是我会订阅过滤后的主提要和“子提要”。过滤器减少了主提要中的项目数量。它们被“过滤掉”。我会订阅经过过滤的主提要,以便监视将来需要取消的其他子提要。
设置单独管道的主要问题是,我需要为每个子源维护过滤器,然后我还必须复制这些过滤器以将整个集合应用到主源。这是可行的,但并不理想。我可能没有其他选择。
[澄清结束]
我的第二个想法是可能使用管道将标签应用到提要项目,希望 Google Reader 能够尊重这些标签。这似乎也不太可能。
我查看了 MagpieRSS 和 Simplepie,考虑推出自己的解决方案。我找到了大量有关合并提要的文档,但没有找到有关拆分提要的文档。我的技能非常基础,因此如果没有非常具体的教程,这可能超出了我的能力范围。
如果有人有想法,我将不胜感激。谢谢。
I'm trying to find a way to split a single RSS feed into separate feeds based on keyword matches.
Yahoo Pipes was my first thought, but I couldn't find a way to do it. Although Pipes has a split module, there is only one output module available for any pipe. So I can't see how I would ever get more than one feed from a pipe.
The whole point in doing this is to make a single dense feed much more manageable in Google Reader. (Hey Google: How about some Gmail-style filters?!)
[Clarification Start]
I envisioned a main feed coming in and then filters building 'sub-feeds' based on certain keywords. The catch is that I would subscribe to both the filtered main feed and the 'sub-feeds.' The filters decrease the number of items in the main feed. They are 'filtered off.' I would subscribe to the filtered main feed in order to watch for other sub-feeds that need to be pulled off in the future.
The main issue with setting up separate Pipes is that I would need to maintain filters for each sub-feed and then I would also have to duplicate those filters to apply the whole set to the main feed. It's doable, but not ideal. I may not have any other option.
[Clarification End]
My second thought was to possibly use Pipes to apply tags to the feed items hoping that Google Reader would honor those tags. This doesn't seem possibly either.
I took a look at MagpieRSS and Simplepie to consider rolling my own solution. I found plenty of documentation for merging feeds, but nothing along the lines of splitting feeds. My skills are pretty basic, so without a pretty specific tutorial, this may be out of my league.
If anyone has ideas, I'd be grateful. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以用管道来做到这一点。不要使用 1 个大管道,而是创建多个不同的管道并在每个管道中按不同的关键字进行过滤。
You can do it with pipes. Instead of being 1 big pipe, create several distinct pipes and filter by different keywords in each pipe.
遗憾的是,您只能从一根管道中获取一份饲料。
另一种选择可能是现在有一个主管道,并使用它来标记您希望它们进入哪个子管道的元素。
然后,您可以在子管道中订阅主管道并按关键字进行过滤。这将在重复的子管道中保留最少的逻辑。
Sadly, you can only get one feed out of one pipe.
Another option might be to have one main pipe for now, and use this to tag the elements by which sub-pipe you would expect them to go to.
You could then subscribe to your main pipe in sub-pipes and filter by keyword. This would keep minimal logic in the duplicate sub-pipes.