Skip to content

Instantly share code, notes, and snippets.

@SeptiyanAndika
Forked from sudo-owen/update_opensea.py
Created April 30, 2022 00:03
Show Gist options
  • Save SeptiyanAndika/6d41319a7a3e3c858fb786038a81c8b5 to your computer and use it in GitHub Desktop.
Save SeptiyanAndika/6d41319a7a3e3c858fb786038a81c8b5 to your computer and use it in GitHub Desktop.
Update OpenSea metadata
import requests
import time
# change the address here to be your desired NFT
url = "https://api.opensea.io/asset/0xc17030798a6d6e1a76382cf8f439182eb0342d93/"
update_flag = "/?force_update=true"
ids = [ i for i in range(0, 180)]
for i in ids:
req_url = url + str(i) + update_flag
r = requests.get(req_url)
print(i, r.status_code)
time.sleep(0.3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment