Skip to content

makevoid/opensea-images-downloader

Repository files navigation

opensea-images-downloader

Opensea changed its API and it now requires an API key for listing the assets, note that you'll need to request an api key and use it via the OPENSEA_API_KEY environment variable


Script to download all the images from an opensea collection using the OpenSea API

Prerequisites

I recommend you run the docker version as you don't have to have Ruby and Bundler installed.

Docker version

System version (non-docker)

  • Ruby and Bundler installed (gem install bundler)

Running in docker

To run in docker (easiest / recommended mode) just clone the project, cd into it and run this command:

docker-compose run -e COLLECTION_NAME=boredapeyachtclub makevoid/opensea_downloader

Check the output directory which will contain the downloaded images.

Installation (non-docker)

clone and cd into the directory

make sure you have ruby and bundler installed (ruby -v, gem i bundler)

run:

bundle

Running (non-docker)

execute this command to start scraping:

rake COLLECTION_NAME="..." OPENSEA_API_KEY="..."

COLLECTION_NAME is the opensea collection name all lowercase, with spaces instead of dashes, as it appears in the URL.

OPENSEA_API_KEY is the opensea api key required to call the NFT API which now requires API KEY token based authorization.


enjoy

@makevoid

About

<outdated> Script to download all the images from an opensea collection using the OpenSea API

Topics

Resources

Stars

Watchers

Forks