Created
July 30, 2021 01:42
-
-
Save sudo-owen/de2c275c639fc660f11f60e1f5e5312f to your computer and use it in GitHub Desktop.
Update OpenSea metadata
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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