Created
May 27, 2012 14:38
-
-
Save wozozo/2814485 to your computer and use it in GitHub Desktop.
trello
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 | |
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