Created
January 4, 2017 20:29
-
-
Save deanmalmgren/b00705474d58fd26f9beadc01809d682 to your computer and use it in GitHub Desktop.
get datascope hat names
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
"""Export a json of the-hat-rack board and run this script to print out all of the names of the internal hats: | |
hats.py trello_export.json | |
""" | |
import sys | |
import json | |
from pprint import pprint | |
with open(sys.argv[1]) as stream: | |
data = json.loads(stream.read().decode("utf-8", "ignore")) | |
datascope_list_id = '562fe354beca021534a29382' | |
for card in data['cards']: | |
if card['idList'] == datascope_list_id: | |
print card['name'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment