+ Post New Thread
Results 1 to 5 of 5
Web Development Thread, Create an RSS Feed in Coding and Web Development; Hello everyone, I have been looking into building an RSS feed for our school. We would like to take an ...
  1. #1
    rrichmond's Avatar
    Join Date
    Jul 2007
    Location
    Brisbane
    Posts
    108
    Thank Post
    3
    Thanked 7 Times in 7 Posts
    Rep Power
    16

    Create an RSS Feed

    Hello everyone,

    I have been looking into building an RSS feed for our school. We would like to take an RSS feed from another site ( Bible Gateway's Verse of the Day ) and combine it with a feed we wish to build at our own site.

    I would like to be able to take the feed and covert it to HTML as well as have it as a normal RSS Feed.

    I have found a lot of web services, such as yahoo pipes (Pipes: Redlands College / Bible Gateway) and dapper ( Verse of the Day Dapp ) that work, but I am concerned about the possibility of the services crashing and not showing the results at our end.

    I then thought.... "Well someone must make some software to do the same thing???"

    I would like some software that:
    1) Can take another RSS Feed, allow you to swap items in it, to other fields (E.g. Move Content to Description ).
    2) Can take a web page and filter out the elements I wish to add to the RSS feed.
    3) Publish the RSS feed.
    4) Convert the RSS feed to a HTML output

    I might be asking for a bit to much from what I have seen out there, but I thought perhaps someone else may have come across something that might fit the bill?

    Thanks

  2. #2
    kesomir's Avatar
    Join Date
    Mar 2008
    Location
    London
    Posts
    288
    Thank Post
    15
    Thanked 28 Times in 23 Posts
    Rep Power
    17
    tried playing with magpie?

    Magpie RSS - PHP RSS Parser

  3. Thanks to kesomir from:

    rrichmond (8th June 2008)

  4. #3
    rrichmond's Avatar
    Join Date
    Jul 2007
    Location
    Brisbane
    Posts
    108
    Thank Post
    3
    Thanked 7 Times in 7 Posts
    Rep Power
    16
    Quote Originally Posted by kesomir View Post
    tried playing with magpie?

    Magpie RSS - PHP RSS Parser
    No... But I will. Anyone know any windows based software as well? (I have my linuc PC Here, but my laptop is windows.. *Sniff*)

  5. #4
    kesomir's Avatar
    Join Date
    Mar 2008
    Location
    London
    Posts
    288
    Thank Post
    15
    Thanked 28 Times in 23 Posts
    Rep Power
    17
    you can run php & apache (&mysql) on windows using wamp.

  6. #5
    mrcrazy04's Avatar
    Join Date
    Nov 2006
    Location
    Bedfordshire/Cheltenham, UK
    Posts
    258
    Thank Post
    2
    Thanked 11 Times in 11 Posts
    Rep Power
    17
    Here's the ASP code I use to display the Bible Gateway verse of the day on my local church site:
    Code:
    Function getXML2(feedURL) 
    
    Dim XmlDocument
    Set XmlDocument = Server.CreateObject("Msxml2.DOMDocument.6.0")
    XmlDocument.setProperty "ServerHTTPRequest", true
    XmlDocument.async = False
    Dim Loaded
    Loaded = XmlDocument.load(feedURL)
    If Loaded Then
    Dim Items, Item, Title, Link, Description, TitleText, DescriptionText, LinkURL, Content2, Contenttext
    XmlDocument.setProperty "SelectionNamespaces","xmlns:content='http://purl.org/rss/1.0/modules/content/'"
    
    Set Items = XmlDocument.selectNodes("//item")
    Response.Write "<ul>" & VbCrLf
    For Each Item in Items
    Set Title = Item.selectSingleNode("title/text()")
    If Title Is Nothing Then
    TitleText = ""
    Else
    TitleText = Title.data
    End If
    Set Link = Item.selectSingleNode("guid")
    If Link Is Nothing Then
    LinkURL = ""
    Else
    LinkURL = Trim(Link.Text)
    End If
    Set Content2 = Item.selectSingleNode("content:encoded/text()")
    If Content2 Is Nothing Then
    Contenttext = "NULL"
    Else
    Contenttext = Content2.Data
    Contenttext = replace(ContentText,"Brought to you by <a href="http://www.edugeek.net/forums/web-development/"http://www.biblegateway.com"">BibleGateway.com</a>. Copyright (C) NIV. All Rights Reserved.","<span class=""biblegateway""><i>Brought to you by <a href="http://www.edugeek.net/forums/web-development/"http://www.biblegateway.com"">BibleGateway.com</a>. Copyright (C) NIV. All Rights Reserved.</i></span>")
    End If
    Set Description = Item.selectSingleNode("description/text()")
    If Description Is Nothing Then
    DescriptionText = ""
    Else
    DescriptionText = Description.data
    End If
    Response.Write "<li><a href="http://www.edugeek.net/forums/web-development/"" & LinkURL & """>" & TitleText & "</a></li>" & VbCrLf
    response.Write Contenttext
    Next
    Response.Write "</ul>" & VbCrLf
    End If
    
    End Function
    And it's called with:
    Code:
    getxml2("http://www.biblegateway.com/usage/votd/rss/votd.rdf")
    I forget where I got the original function from, and I've tweaked it a bit (with my crude replace function to italicise the "From Bible Gateway" message.)

    I also have some ASP to generate an RSS feed from an access database if you're interested.
    It shouldn't be too much work to combine them.

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 22
    Last Post: 30th September 2009, 09:23 PM
  2. RSS Feed
    By triggmiester in forum Web Development
    Replies: 5
    Last Post: 15th February 2008, 03:19 PM
  3. A worthy RSS feed
    By GrumbleDook in forum General Chat
    Replies: 0
    Last Post: 31st January 2008, 08:57 PM
  4. Random RSS Feed
    By russdev in forum Comments and Suggestions
    Replies: 4
    Last Post: 21st March 2006, 10:22 AM
  5. RSS feed creation.
    By Kyle in forum How do you do....it?
    Replies: 7
    Last Post: 18th January 2006, 08:05 AM

Thread Information

Users Browsing this Thread

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

Posting Permissions

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