Python RSS Feeder + Jquery RSS Reader
- by Panther24
I'm trying to implement an RSS Feeder in python using PyRSS2Gen and it created an XML file.
Now in jQuery I'm using Google Ajax API's RSS reader and trying to read it.
I get an error saying something is wrong. I'm unable to figure out the issue.
I've checked some documentation but not able to get it.
This is how my xml file looks:
<rss version="2.0">
<channel>
<title>Andrew's PyRSS2Gen feed</title>
<link>
http://www.dalkescientific.com/Python/PyRSS2Gen.html
</link>
<description>
The latest news about PyRSS2Gen, a Python library for generating RSS2 feeds
</description>
<lastBuildDate>Fri, 26 Mar 2010 13:10:55 GMT</lastBuildDate>
<generator>PyRSS2Gen-1.0.0</generator>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>
<item>
<title>PyRSS2Gen-0.0 released</title>
<link>
http://www.dalkescientific.com/news/030906-PyRSS2Gen.html
</link>
<description>
Dalke Scientific today announced PyRSS2Gen-0.0, a library for generating RSS feeds for Python.
</description>
<guid isPermaLink="true">
http://www.dalkescientific.com/news/030906-PyRSS2Gen.html
</guid>
<pubDate>Sat, 06 Sep 2003 21:31:00 GMT</pubDate>
</item>
<item>
<title>Thoughts on RSS feeds for bioinformatics</title>
<link>
http://www.dalkescientific.com/writings/diary/archive/2003/09/06/RSS.html
</link>
<description>
One of the reasons I wrote PyRSS2Gen was to experiment with RSS for data collection in bioinformatics. Last year I came across...
</description>
<guid isPermaLink="true">
http://www.dalkescientific.com/writings/diary/archive/2003/09/06/RSS.html
</guid>
<pubDate>Sat, 06 Sep 2003 21:49:00 GMT</pubDate>
</item>
</channel>
</rss>
And my JS looks like this
<!-- ++Begin Dynamic Feed Wizard Generated Code++ -->
<!--
// Created with a Google AJAX Search and Feed Wizard
// http://code.google.com/apis/ajaxsearch/wizards.html
-->
<!--
// The Following div element will end up holding the actual feed control.
// You can place this anywhere on your page.
-->
<!-- Google Ajax Api
-->
<script src="../js/jsapi.js" type="text/javascript"></script>
<!-- Dynamic Feed Control and Stylesheet -->
<script src="../js/gfdynamicfeedcontrol.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="../css/gfdynamicfeedcontrol.css">
<script type="text/javascript">
function LoadDynamicFeedControl() {
var feeds = [
{title: 'Demo',
url: 'wcarss.xml'
}];
var options = {
stacked : false,
horizontal : false,
title : ""
}
new GFdynamicFeedControl(feeds, 'feed-control', options);
}
// Load the feeds API and set the onload callback.
google.load('feeds', '1');
google.setOnLoadCallback(LoadDynamicFeedControl);
</script>
<!-- ++End Dynamic Feed Control Wizard Generated Code++ -->
Can some help me and tell me what I'm doing wrong here?
NOTE: Does the XML file have to be deployed? Cause currently its in my local machine and I'm trying to just call it.