'Extract info from a dict turned list

I have a list that has been extracted from a dictionary and the first element of the new list looks like this: enter image description here

The total # of elements in my list are 4200; I was wondering how would I extract the 'uri' of each individual element and place it into a new list.



Solution 1:[1]

Quick way using list comprehension:

[elem['nft_metadata']['data']['uri'] for elem in result['minted_nfts']]

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Anton Yang-Wälder