How can I utilize this RSS code I have created?

Discussion in 'XML & RSS' started by Enfield, Jan 30, 2011.

  1. #1
    I have been blindly trying to create an RSS feed for someone, and I am trying to get the basics down. I am pretty decent with python so I ran RSS2Gen and created this code for this test website. Now that I have this code, What am I supposed to do with it.

    This is the build process I used to generate my RSS(for anyone familiar with python/pyrss2gen) :

    >>> rss = PyRSS2Gen.RSS2(
    	title = "test 1",
    	link = "berryenfieldtest.webs.com",
    	description = "Test 1 publish",
    
    	lastBuildDate = datetime.datetime.utcnow(),
    
    	items = [
    		PyRSS2Gen.RSSItem(
    			title = "Tesuto ichi",
    			link = "berryenfieldtest.webs.com/apps/blog/",
    			description = "This is a test of the really simple syndication system",
    			guid = PyRSS2Gen.Guid("berryenfieldtest.webs.com/apps/"
    					      "blog/"),
    			pubDate = datetime.datetime(2011, 2, 2, 2, 2)),])
    >>> rss.write_xml(open("testtesttest1", "w"))
    Code (markup):
    This is the XML it produced:

     <?xml version="1.0" encoding="iso-8859-1"?>
    <rss version="2.0"><channel><title>test 1</title><link>berryenfieldtest.webs.com</link><description>Test 1 publish</description><lastBuildDate>Mon, 31 Jan 2011 00:09:15 GMT</lastBuildDate><generator>PyRSS2Gen-1.0.0</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Tesuto ichi</title><link>berryenfieldtest.webs.com/apps/blog/</link><description>This is a test of the really simple syndication system</description><guid isPermaLink="true">berryenfieldtest.webs.com/apps/blog/</guid><pubDate>Wed, 02 Feb 2011 02:02:00 GMT</pubDate></item></channel></rss> 
    Code (markup):
    These are the links used in the XML:

    http://berryenfieldtest.webs.com/ (main)

    http://berryenfieldtest.webs.com/apps/blog/ (Item 1)

    Now how am I supposed to utilize the XML file I have created?
    Is there an easier way?

    I am sorta lost so any guidance would be appreciated.
     
    Enfield, Jan 30, 2011 IP
  2. Enfield

    Enfield Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Edit: I need to specifically know how to use this on a website.

    Also I have run this through a validation tool I know there are some errors I just want to know what I am getting into before I move forward.
     
    Enfield, Jan 30, 2011 IP