changing which json object is returned so the images embed

This commit is contained in:
Luke Robles 2021-12-30 19:39:13 -08:00
parent cf93cb71a4
commit bf8fee0cea

View File

@ -6,4 +6,4 @@ def get_nft():
url = "https://api.opensea.io/api/v1/bundles?limit=50&asset_contract_address=0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d" url = "https://api.opensea.io/api/v1/bundles?limit=50&asset_contract_address=0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d"
x = requests.get(url).json()['bundles'] x = requests.get(url).json()['bundles']
return random.choice(x)['assets'][0]['image_original_url'] return random.choice(x)['assets'][0]['image_url']