How to iterate over a cards from a deck

How to iterate over a cards from a deck?

I have a specific deck and I want to access each cards through python looping.

maybe col.decks.cids(the_deck_id),

you could also try something like for cid in mw.col.find_cards(f'''deck:"{thedeckname}"'''), see https://addon-docs.ankiweb.net/#/getting-started?id=the-collection

2 Likes