Yahoo Pipes: filter items in a feed based on words in a text file
I have a feed that filters the RSS feed and removes any item that contains the "stop words" I have selected. I am currently manually creating a filter for each temp word in the channel editor, but the more logical way is to read them from a file. I figured out how to read stop words from a text file, but how do I apply a filter statement to a feed once for each moment?
The documentation explicitly states that operators cannot be applied in a loop construct, but hopefully I'm missing something here.
a source to share
You are missing nothing - a filter statement cannot loop.
The best way to do this is to generate regex from stop words and filter with that. for example generate a string like (word1|word2|word3|...|wordN)
.
You may need to avoid any odd characters. Also I'm not sure how long the regex can last, so you may need to execute it against several filtering rules.
a source to share
In addition to Gavin Brock's answer, the following Yahoo Pipes filters feed items (title, description, link, and author) according to multiple stopwatches:
Inputs
- _render = rss
- feed = http://example.com/feed.rss
- = ignored words word1-word2-word3
a source to share