Community Documents

cancel
Showing results for 
Search instead for 
Did you mean: 

RSS reader

Summary:

Basic RSS reader (at this stage)

Function:

Reads and displays RSS data from an RSS feed URL you paste into the URL field

Lists items contained in the RSS feed in a URL clickable listbox.

Steps to execute code:

  1. Enter the URL of an RSS feed and click run
  2. If one of the listed items interests you, click on it! It will open in your default browser.

Screenshots:

Main Front Panel:

RSS_Reader_FP.png

Main Block Diagram:

RSS_Reader_BD.png

VI Snippet:

VI attached below

Troy - CLD "If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument
Comments
MrPSC
Member
Member
on

What is this example exactly supposed to do?

I put in this link:

http://feeds.bbci.co.uk/news/rss.xml?edition=int

But I am not able to read any RSS data in this.

G-Money
NI Employee (retired)
on

Prashant,

           I used your BBC rss url and it worked fine for me. The example doesn't actually parse down to the story headlines. It just takes the rss url and returns the basic information (title and description) of that subscription. It appears that this VI was coded just to get that information and not the actual rss headlines like other rss readers do.

mike_nrao
Member
Member
on

You extracted an image from a website!?  Sweet!  I was asked by a collegue once how to do that... it seemed like it should be simple, but I had no idea how to actually do it.  Thanks.

TroyK
Active Participant
Active Participant
on

Yeah, I wanted to do more but it was after midnight on Sunday (in Australia) and I needed some sleep.

At that stage there was barely any entries and I felt sorry for the competition organisers so I whipped something up.

I did plan to make it parse a whole heap more stuff if I got through but it looks like there are much better entries now.

Plus I'm up against tst, I never expected to be able to beat him anyway.

Troy - CLD "If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument
TroyK
Active Participant
Active Participant
on

@Michael, thanks, but I can't take credit for that. I borrowed that code from here.

While I'm at it, I also borrowed the awesome gif rendering code from here thanks to MikeS81.

The forums are an excellent resource!

@Prashant

I entered the RSS link you attached, clicked run, and it downloaded the Channel title and description (doesn't seem to be a channel image).

I haven't made it parse all the items yet. I guess it doesn't really do much at this stage.

Because this is an "example code" challenge I thought i'd keep it simple.

When I'm trying to work out how to do something I like simple examples that don't do too much more than demonstrate the concept.

All the other coders in this competition have left me for dead though.

Troy - CLD "If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument
TroyK
Active Participant
Active Participant
on

OK, I had a few minutes during my lunch time to add code to list the items in the RSS feed.

I agree, it is probably an important part of an RSS reader.

Next you'll tell me you want the item list to be working links! Maybe during lunch tomorrow.

Troy - CLD "If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument
TroyK
Active Participant
Active Participant
on

OK, as requested (sort of) it now has a list of items that are clickable links like URLs on a web page.

Troy - CLD "If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument
Contributors