IBM Support

Plugin: RSS Feed Reader

Question & Answer


Question

Plugin: RSS Feed Reader

Answer

New plugin (version 0.1.3) to read a RSS feed.

Revision history
0.0.1 - initial release
0.0.2 - Fixes issue with parsed Time outputs, adds help file
0.0.3 - Fixes issue with polling frequency
0.0.4 - New icon
0.1.0 - Added do (or don't do) validation option
0.1.1 - Fixed problem when selecting to return all entries
0.1.2 - Added support to parse RSS feed using simple rss which can extract non standard entries
0.1.3 - Enhancing functionality added in 0.1.2 to extract attributes from non standard tags

Example:

RSS URL http://rss.cnn.com/rss/cnn_topstories.rss
Post id field guid
Keep trigger on-going? checked
Return all posts? not checked
Additional outputs
guid -> String/Text
pubDate -> Date/Time
Return entire post as xml? checked
Additional output extraction code
post[Guid"] = post["Guid"].content
post["Pubdate"] = post["Pubdate"].to_datetime

The resulting outputs will be as follow each time a new post is found:

Guid (String) -> http://www.cnn.com/2014/11/14/world/asia/india-sterilization-deaths/ind…

Post_XML (String) ->
http://rss.cnn.com/~r/rss/cnn_topstories/~3/Jp8rY3SV64E/index.html
An Indian drug company executive allegedly tampered with and destroyed evidence after a dozen women died following sterilization surgeries an official said Friday broadening the net of those connected with the deaths.<div class="feedflare">
<a href="http://rss.cnn.com/~ff/rss/cnn_topstories?a=Jp8rY3SV64E:FT5hQt3-PCc:yIl… src="http://feeds.feedburner.com/~ff/rss/cnn_topstories?d=yIl2AUoC8zA&quot; border="0"></img></a> <a href="http://rss.cnn.com/~ff/rss/cnn_topstories?a=Jp8rY3SV64E:FT5hQt3-PCc:7Q7… src="http://feeds.feedburner.com/~ff/rss/cnn_topstories?d=7Q72WNTAKBA&quot; border="0"></img></a> <a href="http://rss.cnn.com/~ff/rss/cnn_topstories?a=Jp8rY3SV64E:FT5hQt3-PCc:V_s… src="http://feeds.feedburner.com/~ff/rss/cnn_topstories?i=Jp8rY3SV64E:FT5hQt…; border="0"></img></a> <a href="http://rss.cnn.com/~ff/rss/cnn_topstories?a=Jp8rY3SV64E:FT5hQt3-PCc:qj6… src="http://feeds.feedburner.com/~ff/rss/cnn_topstories?d=qj6IDK7rITs&quot; border="0"></img></a> <a href="http://rss.cnn.com/~ff/rss/cnn_topstories?a=Jp8rY3SV64E:FT5hQt3-PCc:gIN… src="http://feeds.feedburner.com/~ff/rss/cnn_topstories?i=Jp8rY3SV64E:FT5hQt…; border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/rss/cnn_topstories/~4/Jp8rY3SV64E&quot; height="1" width="1"/>
Fri 14 Nov 2014 05:30:35 -0800
http://www.cnn.com/2014/11/14/world/asia/india-sterilization-deaths/ind…

Title (String) -> Exec charged after sterilization deaths

Description (String) ->
An Indian drug company executive allegedly tampered with and destroyed evidence after a dozen women died following sterilization surgeries an official said Friday broadening the net of those connected with the deaths.

Pubdate (Date) -> 2014-11-14 13:30:35 UTC

Link (String) -> http://rss.cnn.com/~r/rss/cnn_topstories/~3/Jp8rY3SV64E/index.html

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSBQSE","label":"Aspera Management and Automation"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
08 December 2018

UID

ibm10748083