Sometimes you need the highest quality image from an NFT on OpenSea. This is how you get it - from the IPFS. OpenSea.
Prerequisites:
- Python 3.9 or above
- A brain
To download the script, either use git clone
or click "Code" > "Download ZIP" on the GitHub page.
To install the dependencies for the script, simply run pip install -r requirements.txt
.
Lastly, open the script in a text editor, and change the CollectionName
variable on Line 11 to your collection of choice, by finding the collection's name on OpenSea. For example, the Lazy Lions collection has the name "lazy-lions" (opensea.io/collection/lazy-lions). CollectionName can also be found in the URL on opensea.io
Now, just run the script.
On Linux, just type python3 opensea.py
in the terminal.
On Windows, just double-click on the file.
On MacOS, there are many different ways to do it. (Google it)
Basically, the OpenSea website allows for scripts like this one to reach into their system via an API. Using this API, we fetch the amount of items in the collection of choice, and split it into 50-item chunks each, and start downloading them. Everything is automated, except for setting the name of the collection.