Add card list reader and card import test scripts
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
#!/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)
|
||||
Reference in New Issue
Block a user