10 lines
265 B
Python
10 lines
265 B
Python
import requests
|
|
import random
|
|
|
|
|
|
def get_nft():
|
|
url = "https://api.opensea.io/api/v1/bundles?limit=50&asset_contract_address=0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d"
|
|
x = requests.get(url).json()['bundles']
|
|
|
|
return random.choice(x)['assets'][0]['image_url']
|