intertwingly

It’s just data

PubSubHubBub Publisher


Previously, I had been pushing pings to blo.gs, blogrolling, technorati, and weblogs.  I removed all of these, and added pubsubhubbub.appspot.com.  This involved two steps.

Adding the following to my feed:

<link rel="hub" href="http://pubsubhubbub.appspot.com/"/>

And, adding the following to my publishing flow (based on pubsubhubbub_publish.py):

#!/usr/bin/python
import urllib, urllib2
         
hub = 'http://pubsubhubbub.appspot.com/'
feed = 'http://intertwingly.net/blog/index.atom'
        
try:
  data = urllib.urlencode((('hub.mode','publish'), ('hub.url',feed)))
  response = urllib2.urlopen(hub, data)
except urllib2.HTTPError, e:
  if not hasattr(e, 'code') or e.code != 204: raise