Py-trello 教程或示例
Py-trello tutorial or example
我正在尝试将我们的 trello 看板中的数据提取到 python 中,并可能以表格格式输出结果,其中包含会员姓名、卡片名称、描述、打开日期、截止日期等。
我找到的最接近的东西是这个包 py-trello 但除了获取板和卡的名称之外我无法继续进行。有没有哪位有这方面经验的可以指导一下?
pip install py-trello
from trello import TrelloClient
client = TrelloClient(
api_key='Your API Key',
api_secret='Your Secret',
token='Your Token',
all_boards = client.list_boards()
last_board = all_boards[-1]
print(last_board.name)
board = client.list_boards()[0]
board.list_lists()
all_boards = client.list_boards()
last_board = all_boards[-1]
last_board.list_lists()
my_list = last_board.get_list(list_id)
for card in my_list.list_cards():
print(card.name)
all_boards = client.list_boards()
last_board = all_boards[-1]
print(last_board.name)
board = client.list_boards()[0]
board.list_lists()
all_boards = client.list_boards()
last_board = all_boards[-1]
last_board.list_lists()
list
my_list = last_board.list_lists()[number]
print(my_list.list_cards())
我正在尝试将我们的 trello 看板中的数据提取到 python 中,并可能以表格格式输出结果,其中包含会员姓名、卡片名称、描述、打开日期、截止日期等。
我找到的最接近的东西是这个包 py-trello 但除了获取板和卡的名称之外我无法继续进行。有没有哪位有这方面经验的可以指导一下?
pip install py-trello
from trello import TrelloClient
client = TrelloClient(
api_key='Your API Key',
api_secret='Your Secret',
token='Your Token',
all_boards = client.list_boards()
last_board = all_boards[-1]
print(last_board.name)
board = client.list_boards()[0]
board.list_lists()
all_boards = client.list_boards()
last_board = all_boards[-1]
last_board.list_lists()
my_list = last_board.get_list(list_id)
for card in my_list.list_cards():
print(card.name)
all_boards = client.list_boards()
last_board = all_boards[-1]
print(last_board.name)
board = client.list_boards()[0]
board.list_lists()
all_boards = client.list_boards()
last_board = all_boards[-1]
last_board.list_lists()
list
my_list = last_board.list_lists()[number]
print(my_list.list_cards())