A python PubSubHubbub library.
- Author: Bruno Renié and contributors
- Licence: BSD
- Compatibility: Python 2.X where X >= 6
This library provides some helpers for implementing PubSubHubbub-enabled applications in python.
Publishing some content is as easy as:
This is done in your RSS/Atom feed:
<?xml version="1.0"?> <atom:feed> <link rel="hub" href="http://hub.example.com/endpoint" /> …
Whenever the content is updated, issue a ping request to the hub you use:
from push.pub import ping_hub, PingError
try:
ping_hub(topic_url, hub_url)
except PingError as e:
print "Error while pinging hub, more info available in e.response