Skip to content

Instantly share code, notes, and snippets.

@deanmalmgren
Created January 4, 2017 20:29
Show Gist options
  • Save deanmalmgren/b00705474d58fd26f9beadc01809d682 to your computer and use it in GitHub Desktop.
Save deanmalmgren/b00705474d58fd26f9beadc01809d682 to your computer and use it in GitHub Desktop.
get datascope hat names
"""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