Results 1 to 13 of 13

Thread: Displaying RSS as HTML

  1. #1
    Mike Fishcake
    Guest

    Displaying RSS as HTML

    I'm looking for a simple script to display one of our RSS feeds as HTML on a display we've got in our office. The only customisation I need on it is to have our banner graphic at the top, and to make sure the fonts are nice and big - nothing needs to be clickable, in fact, it probably only needs to display the title of the items posted on the list. There are loads and loads of RSS to HTML scripts on the web, but I've no idea how many are any good, and they're probably more complicated than they need to be.

    Any ideas?

  2. #2
    Senior Member
    Join Date
    Feb 2004
    Posts
    403
    Thanks
    58
    Thanked
    79 times in 68 posts
    • Firejack's system
      • Motherboard:
      • Asus PRIME X470-Pro
      • CPU:
      • AMD Ryzen 7 2700X
      • Memory:
      • TG Dark Pro "8pack Edition"
      • Storage:
      • Crucial 250GB SSD, Sandisk 128GB SSD, Samsung 1TB HDD
      • Graphics card(s):
      • Sapphire RX VEGA 56 8GB Pulse
      • PSU:
      • SeaSonic Focus Plus 650 Gold
      • Case:
      • Fractal Design Define S
      • Operating System:
      • Windows 10 Pro 64bit
      • Monitor(s):
      • Dell S2719DGF
      • Internet:
      • BT Infinity 2

    Re: Displaying RSS as HTML

    I've been looking to do the same thing lately. After many hours research I'm currently trying Google AJAX Feed API. With a little patience it seems you can get a lot done and a pretty snazzy result.
    Seems to be actively in development too. With a new version in testing.
    So many projects seemed dead or inactive, leaving me unwilling to try them.

    http://code.google.com/apis/ajaxfeeds/

    Give it a try and let me know what you think.


    PS Who the hell uses the word "snazzy" these days. Apparently I do! Hope it won't get me banned on these forums?

  3. Received thanks from:


  4. #3
    Large Member
    Join Date
    Apr 2004
    Posts
    3,720
    Thanks
    47
    Thanked
    99 times in 64 posts

    Re: Displaying RSS as HTML

    In a browser?
    To err is human. To really foul things up ... you need a computer.

  5. #4
    HEXUS webmaster Steve's Avatar
    Join Date
    Nov 2003
    Posts
    14,283
    Thanks
    293
    Thanked
    841 times in 476 posts

    Re: Displaying RSS as HTML

    I doubt you'd want to bother, but there's always the "proper way":

    http://en.wikipedia.org/wiki/XSLT#Ex...ML_to_XHTML.29

  6. Received thanks from:


  7. #5
    Not a good person scaryjim's Avatar
    Join Date
    Jan 2009
    Location
    Gateshead
    Posts
    15,196
    Thanks
    1,231
    Thanked
    2,291 times in 1,874 posts
    • scaryjim's system
      • Motherboard:
      • Dell Inspiron
      • CPU:
      • Core i5 8250U
      • Memory:
      • 2x 4GB DDR4 2666
      • Storage:
      • 128GB M.2 SSD + 1TB HDD
      • Graphics card(s):
      • Radeon R5 230
      • PSU:
      • Battery/Dell brick
      • Case:
      • Dell Inspiron 5570
      • Operating System:
      • Windows 10
      • Monitor(s):
      • 15" 1080p laptop panel

    Re: Displaying RSS as HTML

    Quote Originally Posted by Steve View Post
    I doubt you'd want to bother, but there's always the "proper way":

    http://en.wikipedia.org/wiki/XSLT#Ex...ML_to_XHTML.29
    Pretty much what I was coming in to say. It might actually be the easiest way to handle it if you control the feed and it's literally just for displaying stuff, too. Is this for proper work or something personal / on the side?
    Last edited by scaryjim; 15-10-2010 at 08:05 PM. Reason: clarification!

  8. #6
    Senior Member
    Join Date
    Jul 2004
    Location
    London
    Posts
    2,456
    Thanks
    100
    Thanked
    75 times in 51 posts
    • Mblaster's system
      • Motherboard:
      • ASUS PK5 Premium
      • CPU:
      • Intel i5 2500K
      • Memory:
      • 8gb DDR3
      • Storage:
      • Intel X25 SSD + WD 2TB HDD
      • Graphics card(s):
      • Nvidia GeForce GTX 570
      • PSU:
      • Corsair HX520
      • Case:
      • Antec P180
      • Operating System:
      • Windows 7 Professional x64
      • Monitor(s):
      • HP w2207 (22" wide)
      • Internet:
      • Rubbish ADSL

    Re: Displaying RSS as HTML

    Quote Originally Posted by Steve View Post
    I doubt you'd want to bother, but there's always the "proper way":

    http://en.wikipedia.org/wiki/XSLT#Ex...ML_to_XHTML.29
    As Steve says. I wrote one of these for this exact purpose a year or two back, XSLT isn't the nicest thing to use but it worked well, and it's highly customisable.
    I don't mean to sound cold, or cruel, or vicious, but I am so that's the way it comes out.

  9. #7
    Mike Fishcake
    Guest

    Re: Displaying RSS as HTML

    Basically, we had a spare plasma screen (yeah, I know) in our office that wasn't being used, and as it's quite a large office we thought we could have a nice big screen to display service announcements, scheduled downtimes, new knowledge base articles etc. We've got that set up now, using screensaver software that flips through HTML pages every 15 seconds, and as the service announcement stuff comes through as an RSS feed, we'd like to be able to display it. We have tried displaying the actual web page for that one, but even with text size enlarged it isn't really large enough.

    I'll have a look about doing it the proper way - If anything it'll be an interesting project for something I've never done before

  10. #8
    Senior Member
    Join Date
    Dec 2006
    Location
    Bedfordshire
    Posts
    471
    Thanks
    29
    Thanked
    11 times in 11 posts
    • MarcLister's system
      • Motherboard:
      • Asus P5Q-E
      • CPU:
      • Intel C2Q9650
      • Memory:
      • 8GB
      • Storage:
      • Intel 160GB SSD / 1TB Samsung
      • Graphics card(s):
      • ATI 6700
      • PSU:
      • Corsair 800W MX
      • Case:
      • Antec 300
      • Operating System:
      • W7 x64
      • Monitor(s):
      • 2 x Dell U2410
      • Internet:
      • Sky Fibre

    Re: Displaying RSS as HTML

    Quote Originally Posted by Mike Fishcake View Post
    using screensaver software that flips through HTML pages every 15 seconds
    I'm doing something similar at work and I could do with having more control over the RSS feed than the program I'm using is letting me. Would you mind giving me the name of the screensaver software so I can evaluate it and see if its easier to work with than the program I've been lumbered with?

  11. #9
    Mike Fishcake
    Guest

    Re: Displaying RSS as HTML

    Quote Originally Posted by MarcLister View Post
    I'm doing something similar at work and I could do with having more control over the RSS feed than the program I'm using is letting me. Would you mind giving me the name of the screensaver software so I can evaluate it and see if its easier to work with than the program I've been lumbered with?
    Yep - http://www.softpedia.com/get/Interne.../view-IT.shtml

    It's free for personal use, only US$5 for small businesses/schools or $12 for larger business and HE institutions. Pocket change!

    It uses IE's engine to display the pages, so any config changes you make in IE will reflect on ViewIT. I've got it set to maximum font size and with page caching turned off, so it's forced to re-check the page every time. Not sure if we're actually going to use it properly yet, but if we do, it's certainly filled the gap that we need.

  12. #10
    Senior Member
    Join Date
    Dec 2006
    Location
    Bedfordshire
    Posts
    471
    Thanks
    29
    Thanked
    11 times in 11 posts
    • MarcLister's system
      • Motherboard:
      • Asus P5Q-E
      • CPU:
      • Intel C2Q9650
      • Memory:
      • 8GB
      • Storage:
      • Intel 160GB SSD / 1TB Samsung
      • Graphics card(s):
      • ATI 6700
      • PSU:
      • Corsair 800W MX
      • Case:
      • Antec 300
      • Operating System:
      • W7 x64
      • Monitor(s):
      • 2 x Dell U2410
      • Internet:
      • Sky Fibre

    Re: Displaying RSS as HTML

    Quote Originally Posted by Mike Fishcake View Post
    Yep - http://www.softpedia.com/get/Interne.../view-IT.shtml

    It's free for personal use, only US$5 for small businesses/schools or $12 for larger business and HE institutions. Pocket change!

    It uses IE's engine to display the pages, so any config changes you make in IE will reflect on ViewIT. I've got it set to maximum font size and with page caching turned off, so it's forced to re-check the page every time. Not sure if we're actually going to use it properly yet, but if we do, it's certainly filled the gap that we need.
    Thanks Mike. Amazing price. I might try it at home first and then see if I can persuade work (school) to buy it.

  13. #11
    Senior Member
    Join Date
    Dec 2006
    Location
    Bedfordshire
    Posts
    471
    Thanks
    29
    Thanked
    11 times in 11 posts
    • MarcLister's system
      • Motherboard:
      • Asus P5Q-E
      • CPU:
      • Intel C2Q9650
      • Memory:
      • 8GB
      • Storage:
      • Intel 160GB SSD / 1TB Samsung
      • Graphics card(s):
      • ATI 6700
      • PSU:
      • Corsair 800W MX
      • Case:
      • Antec 300
      • Operating System:
      • W7 x64
      • Monitor(s):
      • 2 x Dell U2410
      • Internet:
      • Sky Fibre

    Re: Displaying RSS as HTML

    Quote Originally Posted by Mike Fishcake View Post
    and as the service announcement stuff comes through as an RSS feed, we'd like to be able to display it.
    Sorry to bother you again Mike. I've just installed ViewIT and I love it. I can see the power of it already and I think it is much better than the software I was given to play with at work. I can't work out with that how to have different pages whereas with ViewIT its so much easier to just put a load of files in and use the ini file to load each HTML page for x seconds.

    My problem so far is the RSS. I would like to have it auto-updating but I can't work out how to integrate it into the test HTML page I have. I know how to link to the RSS we want to use (BBC News) but not actually to display it as this is for a display screen which won't have a keyboard or mouse for control.

    I've found ways to add RSS but they seem website related and not really suitable for an offline HTML page. Have you found out how to display your RSS as a live, automatically updating feed? The program we use currently takes the RSS and scrolls through each news item and adds/removes stories according to the state of the feed.

  14. #12
    Mike Fishcake
    Guest

    Re: Displaying RSS as HTML

    Quote Originally Posted by MarcLister View Post
    Sorry to bother you again Mike. I've just installed ViewIT and I love it. I can see the power of it already and I think it is much better than the software I was given to play with at work. I can't work out with that how to have different pages whereas with ViewIT its so much easier to just put a load of files in and use the ini file to load each HTML page for x seconds.

    My problem so far is the RSS. I would like to have it auto-updating but I can't work out how to integrate it into the test HTML page I have. I know how to link to the RSS we want to use (BBC News) but not actually to display it as this is for a display screen which won't have a keyboard or mouse for control.

    I've found ways to add RSS but they seem website related and not really suitable for an offline HTML page. Have you found out how to display your RSS as a live, automatically updating feed? The program we use currently takes the RSS and scrolls through each news item and adds/removes stories according to the state of the feed.
    TBH I've not done much work on it since, but I did have some sort of progress using the Google AJAX Feed API - http://code.google.com/apis/ajaxfeeds/ - Didn't get it to do what I wanted it to, but you may be able to adapt it for your use?

  15. #13
    Senior Member
    Join Date
    Dec 2006
    Location
    Bedfordshire
    Posts
    471
    Thanks
    29
    Thanked
    11 times in 11 posts
    • MarcLister's system
      • Motherboard:
      • Asus P5Q-E
      • CPU:
      • Intel C2Q9650
      • Memory:
      • 8GB
      • Storage:
      • Intel 160GB SSD / 1TB Samsung
      • Graphics card(s):
      • ATI 6700
      • PSU:
      • Corsair 800W MX
      • Case:
      • Antec 300
      • Operating System:
      • W7 x64
      • Monitor(s):
      • 2 x Dell U2410
      • Internet:
      • Sky Fibre

    Re: Displaying RSS as HTML

    Hi Mike. Yeah I found that last night but it wants a key and for the key it wants a website. We're not going to be using this on a website!

    Just wondering if I can use the code below but remove the script line that has the key?
    Code:
    <script type="text/javascript" src="http://www.google.com/jsapi?key=YOUR_KEY_HERE"></script
    Code:
    <html>
      <head>
        <script type="text/javascript" src="http://www.google.com/jsapi?key=YOUR_KEY_HERE"></script>
        <script type="text/javascript">
    
        google.load("feeds", "1");
    
        function initialize() {
          var feed = new google.feeds.Feed("http://www.digg.com/rss/index.xml");
          feed.load(function(result) {
            if (!result.error) {
              var container = document.getElementById("feed");
              for (var i = 0; i < result.feed.entries.length; i++) {
                var entry = result.feed.entries[i];
                var div = document.createElement("div");
                div.appendChild(document.createTextNode(entry.title));
                container.appendChild(div);
              }
            }
          });
        }
        google.setOnLoadCallback(initialize);
    
        </script>
      </head>
      <body>
        <div id="feed"></div>
      </body>
    </html>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. RSS Aggregator
    By wilksj01 in forum Software
    Replies: 2
    Last Post: 17-07-2008, 09:50 PM
  2. ASP.NET + html form problem.. (GCheckout)
    By Spud1 in forum Software
    Replies: 3
    Last Post: 05-10-2007, 01:39 PM
  3. Replies: 17
    Last Post: 15-07-2007, 03:59 PM
  4. Its all gone RSS.....
    By MD in forum General Discussion
    Replies: 5
    Last Post: 25-01-2006, 04:19 PM
  5. Replies: 1
    Last Post: 14-08-2003, 03:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •