Skip to content

Instantly share code, notes, and snippets.

@sudo-owen
Created July 30, 2021 01:42
Show Gist options
  • Save sudo-owen/de2c275c639fc660f11f60e1f5e5312f to your computer and use it in GitHub Desktop.
Save sudo-owen/de2c275c639fc660f11f60e1f5e5312f 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