---------- Forwarded message ----------
From: Bob Wyman <b...@wyman.us>
Date: 2012/1/13
Subject: [pubsubhubbub] AppEngine Python PSHB Service using
Prospective Search Service: FrackIM Code available.
To: pubsubhubbub <pubsub...@googlegroups.com>
I've uploaded some sample code demonstrating a Python-based PSHB
subscriber which provides a PSHB to XMPP gateway. You can find the
code at http://code.google.com/p/frackim/source/browse/ and a running
demo is at http://frackim.appspot.com . Feel free to use your XMPP
client to subscribe to receive updates from the demo. Also, I would
greatly appreciate any coding/feature suggestions from the many of
your who are probably much better Python coders than I am...
"FrackIM" allows you to "Follow" or "Track" messages which originate
either from XMPP IM or from PubSubHubbub. Read the instructions and
then add fra...@appspot.com to your buddy list.
The software uses the AppEngine Prospective Search Service and
delivers results using AppEngine's XMPP service. Topic-based behavior
is implemented by subscribing to messages using a query that
constrains the "follow" attribute of messages. This attribute contains
either an XMPP JID or an HTTP URL (the URL is, of course, a PSHB
"topic"). For example:
/subscribe follow:huffingtonpost.com is like a topic-based
subscription in PSHB today.
To get "content-based" behavior, you create a subscription that
constrains the "track" attribute of a message. Thus:
/subscribe track:obama is content-based and will match any IM or PSHB
message that contains the word "Obama".
of course, you can combine the two together like this:
/subscribe follow:huffingtonpost.com AND track:obama which would
return only messages published by HuffingtonPost that contain the word
Obama.
I hope at least some of you find this to be useful. Please do provide
suggestions for how to improve this tool. I am also interested in any
suggestions you may have for other "push" services for which I could
build and interface to broaden the range of content that is handled by
this tool.
bob wyman