This file contains hidden or 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
. |
This file contains hidden or 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
class AlbumStats(object): | |
""" | |
Get stats (mood and tempo) about an album using the Gracenote API. | |
Requires: | |
1) A Gracenote API key - https://developer.gracenote.com/ | |
2) pygn - https://github.com/cweichen/pygn | |
Example: |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
###################################################### | |
## (c) 2012-2013 MDG Web limited - MIT licence | |
###################################################### | |
import cPickle | |
class RedisCache(object): | |
"""Redis cache""" | |
This file contains hidden or 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
import urllib | |
from twilio.rest import TwilioRestClient | |
twilio_account = "xxx" | |
twilio_token = "xxx" | |
twilio_from = "xxx" | |
twilio_to = "xxxx" | |
eventbrite = 'http://sfhackathon2013-eorg.eventbrite.com/' | |
data = urllib.urlopen(eventbrite).read().lower() |