Skip to content

Instantly share code, notes, and snippets.

@wozozo
Created May 27, 2012 14:38
Show Gist options
  • Save wozozo/2814485 to your computer and use it in GitHub Desktop.
Save wozozo/2814485 to your computer and use it in GitHub Desktop.
trello
# coding: utf-8
import json
import urllib
import memcache
trello_url = ''
def main():
mc = memcache.Client(['127.0.0.1:11211'])
url = urllib.urlopen(trello_url)
actions = json.loads(url.read())
for action in actions:
key = str('trello:%s' % action['id'])
if not mc.get(key):
# post to somewhere
mc.set(key, True)
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment