Chapter 9. Syndication

Table of Contents
9.1. Feed formats that come with PyBlosxom
9.2. Debugging your feeds

Most newsreaders read most of the syndication formats. So you shouldn't feel that you have to implement each one of them in your blog--you can most assuredly get away with implementing RSS 2.0 or ATOM and be just fine.

9.1. Feed formats that come with PyBlosxom

PyBlosxom comes with a few default flavours, three of which are feeds.

9.1.1. RSS 0.9.1

PyBlosxom comes with an rss flavour that produces RSS 0.9.1 output. Here's a sample of what it produces:

Example 9-1. example of RSS 0.9.1 feed


<?xml version="1.0" encoding="utf-8"?>
<!-- name="generator" content="pyblosxom/1.2 3/25/2005" -->
<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN"
"http://my.netscape.com/publish/formats/rss-0.91.dtd">

<rss version="0.91">
<channel>
<title>My Blog</title>
<link>http://www.joe.com/blog/index.rss</link>
<description>This is my blog about trivial things</description>
<language>en</language>
<item>
    <title>Example of an entry post</title>

    <link>http://www.joe.com/blog/entries/example1.html</link>
    <description>&lt;p&gt;
  Here's an example of an entry in my blog.  This is the body of the entry.
&lt;/p&gt;
</description>
  </item>
</channel>
</rss>

This example only has one entry in it. The number of entries the rss flavour will display is determined by the num_entries property in your config.py file.

Noteprobably better not to use RSS 0.9.1
 

RSS 0.9.1 format lacks dates in the data for the items. Unless you include the date for the entry somewhere in the description block, people looking at your RSS 0.9.1 feed won't know what the date the entry was created on was.

Unless you have some reason to use RSS 0.9.1 as your syndication format, you should look at using RSS 2.0 or Atom 1.0 both of which also come with PyBlosxom.

The standard for RSS 0.9.1 is at: http://my.netscape.com/publish/formats/rss-spec-0.91.html

9.1.2. RSS 2.0

PyBlosxom 1.3 comes with an RSS 2.0 flavour called "rss20". If it's missing features that you want (for example, some folks are doing podcasting with their blog), then override the individual templates you need to adjust.

The standard for RSS 2.0 is at: http://blogs.law.harvard.edu/tech/rss

9.1.3. Atom 1.0

PyBlosxom 1.3 comes with an Atom 1.0 flavour called "atom". If it's missing features that you want, then override the individual templates you need to adjust.

The standard for Atom 1.0 is at: http://atomenabled.org/