Files

10 lines
347 B
Python

#!/usr/bin/env python3
"""Read the MTG card list XLSX and print all card names."""
import openpyxl
wb = openpyxl.load_workbook('/home/wall-o/MTG card list.xlsx')
ws = wb.active
print(f"Sheet: {ws.title}, Rows: {ws.max_row}, Cols: {ws.max_column}")
for row in ws.iter_rows(min_row=1, max_row=min(ws.max_row, 50), values_only=True):
print(row)