Forums

Discuss all things Remember The Milk.

menu

Parsing RSS, eliminating parts of feed

itpwebmaster says:
I'd like to parse the returned RSS items and eliminate a few of the returned bits of data - everything but the title and the due date, including the link.

Here is what is returned for each item:

<div class="rssfeed"><a href="[URL]">New General Brochure</a></div>
<div class="rsscontent">
<div><span>Due: </span><span>Thu 10 Jul 08</span></div>

<div><span>Priority: </span><span>1</span></div>
<div><span>Time estimate: </span><span>none</span></div>
<div><span>Tags: </span><span>print</span></div>
<div><span>Location: </span><span>none</span></div>
<div><span>Postponed: </span><span>never</span></div>
</div>

<p class="footnote">Source: <a href="[URL]">Steve's Tasks - Communications Projects</a></p>
</div>

The second link is easy - the .footnote class just gets the display:none property in my CSS. The rest of the SPAN and DIV have no label.

What to do?
Posted at 8:24am on July 3, 2008
itpwebmaster says:
Oh - and it would be neat to be able to post the notes for the item, as well.
Posted 15 years ago
scott.davies says:
What tools/languages do you have at hand? curl? Java?
Posted 15 years ago
itpwebmaster says:
I could use, but am not an expert in, Java. My server isn't limited, if that's what you mean.
Posted 15 years ago
(closed account) says:
the easiest option is probably to use Yahoo! Pipes (http://pipes.yahoo.com/pipes/)

They have pre-built modules for fetching RSS feeds and filtering them, which you (visually) plug together.
Posted 15 years ago
itpwebmaster says:
Let's find out! : )
Posted 15 years ago
itpwebmaster says:
My brain ... hurts ... : (

Couldn't get it running. I'll be making another attempt, though...
Posted 15 years ago
This topic has now been closed automatically due to a lack of responses in the past 90 days.