The sole purpose of this script is to download any NFT collection from 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
.
Find the collection name you want to scrape on OpenSea by looking at end of the collection URL. For example, the Lazy Lions collection has the name "lazy-lions" (opensea.io/collection/lazy-lions).
Now, just run the script with the collection name at the end as so:
On Linux, just type python3 opensea.py lazy-lions
in the terminal.
On Windows, just type py opensea.py lazy-lions
in the command line.
On MacOS, you may run it the same as Linux. 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.
2 reasons: Firstly, for the funny. Secondly, out of spite for these stupid #RightClickVictims. I'm tired of all these NFT junkies constantly talking about how they're victims to screenshotting, and how screenshotting is property theft. So to rub salt in their exaggerated wounds, here is a script that downloads literally every NFT in any collection on the most popular NFT trading website.