Skip to content

Instantly share code, notes, and snippets.

@yuiseki
Created August 26, 2010 10:30
Show Gist options
  • Save yuiseki/551197 to your computer and use it in GitHub Desktop.
Save yuiseki/551197 to your computer and use it in GitHub Desktop.
# ustream apiから検索条件を取得する
api = "http://api.ustream.tv/json/channel/%s/getValueOf/socialStream?key=yourDevKey" % channel_id
# json で取得して結果を返す
res = urllib.urlopen(api)
socialstream = json.loads(res.read())
tweet = socialstream["results"]["hashtag"]
logger.debug(tweet)
ref_tweet = _ref2unicode(tweet)
logger.debug(ref_tweet)
return ref_tweet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment