UPDATE: you should definitely go with Benjamin Golub‘s Python FriendFeed library for App Engine (fftogo). It is cleaner than mine and includes some undocumented API calls (like fetch_entry).
I had to make some minor modifications to the FriendFeed python library to get it to work with Google App Engine. App Engine does not support out urllib2, and has its own urlfetch library.
Here is the cut and paste-able code (see also pastie, I’m having trouble with code formatting in WordPress)
= "json" args = url = "http://friendfeed.com" + uri + "?" + args if post_args is not None: request = else: request = if self.auth_nickname and self.auth_key: pair = "%s:%s" % (self.auth_nickname, self.auth_key) token = stream = data = return= "json" args = url = "http://friendfeed.com" + uri + "?" + args headers = if post_args is not None: post_data = method = "POST" headers= else: post_data = None method = "GET" if self.auth_nickname and self.auth_key: pair = "%s:%s" % (self.auth_nickname, self.auth_key) token = = "Basic %s" % token result = data = result.content self.result = result self.feed_json = data return