Created
August 26, 2010 10:30
-
-
Save yuiseki/551197 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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