Examples:
PNAS - RSS feed of Early Edition articles: keep posts containing the word "protein"
feed("http://www.pnas.org/rss/ahead.xml",contains("protein"))
PNAS - RSS feed of Early Edition articles: keep posts NOT containing the words "[IMMUNOLOGY]" or "[geology]"
feed("http://www.pnas.org/rss/ahead.xml",NOT(OR(contains("[IMMUNOLOGY]"),contains("[geology]"))))
RSS feeds from connotea about tag=bioinformatics where author is not dc:creator=lindenb
feed("http://www.connotea.org/rss/tag/bioinformatics",not(equals("dc:creator","lindenb")))
Syntax
input: feed( <url:string>, <node> )
node: AND( <node> , <node> )
| OR( <node> , <node> )
| NOT( <node> )
| contains( <qName:string>,<value:string>)
| contains( <value:string>)
| equals( <qName:string>,<value:string>)
| equals( <value:string>)
| regex( <qName:string>,<java regular expression:string>)
| regex( <java regular expression:string>)
Pierre
why not use Yahoo Pipes?
ReplyDeleteClassic bioinfo doing too much work.
You're absolutely right ! :-)
ReplyDelete1) I forgot about yahoo.pipes (shame on me !)
2) I wanted to implement this tiny language with boolean operators for some other applications
3) I also wanted to test code.google.com
Another option is RSSFilter http://www.feedforall.com/rssfilter.htm
ReplyDeletegood idea, but if you want to have the "web 2.0" stamp, you could try to have a different URL and avoid explicit parameters, like feed("http://www.pnas.org/rss/ahead.xml/protein")
ReplyDeleteif you are outside a web 2.0 framework, apache URL rewrite can do that for you.
How does this program work?
ReplyDeleteI tried using yahoo pipes but it didn't update in a timely manor, also difficult to create a simple filter. Now I use http://www.filtermyrss.com
ReplyDelete