Automatically download any NFT collection from OpenSea.

Overview

OpenSea NFT Stealer

The sole purpose of this script is to download any NFT collection from OpenSea.

How does it work?

Basically, the OpenSea website allows for scripts 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 the name of the collection. The name of the collection has to be set manually, by opening the .py file and changing the Collection Name variable on line 11.

Why did you make this?

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.

Comments
  • Error running script

    Error running script

    I get this error when trying to run this script Traceback (most recent call last): File "C:\Users\17379\Desktop\OpenSea-NFT-Stealer-master\opensea.py", line 60, in <module> data = json.loads(requests.get(f"https://api.opensea.io/api/v1/assets?order_direction=asc&offset={offset}&limit=50&collection={CollectionName}&format=json").content.decode()) File "C:\Users\17379\AppData\Local\Programs\Python\Python39\lib\json\__init__.py", line 346, in loads return _default_decoder.decode(s) File "C:\Users\17379\AppData\Local\Programs\Python\Python39\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Users\17379\AppData\Local\Programs\Python\Python39\lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

    opened by waltertheduck 18
  • When i start the script it instantly close himself

    When i start the script it instantly close himself

    When i start the script it instantly close himself and create the images folder but there is no image in it.

    In the image folder created i have the name of the collection folder>image_data but nothing in it like no image are in. How to fix it ?

    I double checked, I have all the Prerequisites.

    opened by Freezen2 9
  • Syntax error for random_user_agents

    Syntax error for random_user_agents

    Describe the bug I know this might sound very straightforward to many, but for a noob like me it gave me quite a nightmare for a while. import random_user_agents gives me a syntax error. I finally realised I had to use import random_user_agent

    The collection you were trying to download Its downloading really great now!

    Expected behavior A clear and concise description of what you expected to happen.

    Terminal output (please show the error that the console showed)

    paste here
    
    opened by NFTsibeiho 6
  • again trackback

    again trackback

    Beginning download of "xxxxxxx" collection.

    Traceback (most recent call last): File "/Users/user/Desktop/OpenSea-NFT-Stealer-master/opensea.py", line 101, in data = json.loads(requests.get(f"https://api.opensea.io/api/v1/assets?order_direction=asc&offset={offset}&limit=50&collection={CollectionName}&format=json", headers=headers).content.decode()) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/json/init.py", line 346, in loads return _default_decoder.decode(s) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0

    opened by micash545 4
  • [BUG]

    [BUG]

    Traceback (most recent call last): File "C:/Users/Kemal/Desktop/OpenSea-NFT-Stealer-master/OpenSea-NFT-Stealer-master/opensea.py", line 135, in image_url = ipfs_resolve(image_url).url File "C:/Users/Kemal/Desktop/OpenSea-NFT-Stealer-master/OpenSea-NFT-Stealer-master/opensea.py", line 92, in ipfs_resolve cid = image_url.removeprefix("ipfs://") AttributeError: 'str' object has no attribute 'removeprefix'

    this error, some collections work, some give this exact error . thanks for your great code

    opened by KemalCleva 4
  • Exception has occurred: JSONDecodeError

    Exception has occurred: JSONDecodeError

    Expecting value: line 1 column 1 (char 0)

    During handling of the above exception, another exception occurred:

    File "C:\1\1\1\OpenSea-NFT-Stealer-master\opensea.py", line 71, in data = json.loads(requests.get(f"https://api.opensea.io/api/v1/assets?order_direction=asc&offset={offset}&limit=50&collection={CollectionName}&format=json", headers=headers).content.decode())

    opened by kyuchin 4
  • Error while running opensea.py

    Error while running opensea.py

    I installed the requirements.txt but when I run the file opensea.py I keep getting this error

    Traceback (most recent call last): File "C:\Users\S\Desktop\OpenSea-NFT-Stealer-master\opensea.py", line 1, in import requests ModuleNotFoundError: No module named 'requests'

    opened by jimmy24599 2
  • [BUG] - JSONDecodeError

    [BUG] - JSONDecodeError

    Describe the bug A clear and concise description of what the bug is. this used to work, but today, trying to run python3 opensea.py and getting the following error.

    Am i getting throttled from the api?

    The collection you were trying to download alienfrensnft

    Expected behavior A clear and concise description of what you expected to happen. I expected to see the command run and pull in all of the collection images and data.

    Terminal output (please show the error that the console showed)

    Beginning download of "alienfrensnft" collection.
    
    Traceback (most recent call last):
      File "/Users/tech/Code/steal/OpenSea-NFT-Stealer/opensea.py", line 106, in <module>
        data = json.loads(requests.get(f"https://api.opensea.io/api/v1/assets?order_direction=asc{token_ids}&limit=50&collection={CollectionName}&format=json", headers=headers).content.decode())
      File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/json/__init__.py", line 346, in loads
        return _default_decoder.decode(s)
      File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/json/decoder.py", line 337, in decode
        obj, end = self.raw_decode(s, idx=_w(s, 0).end())
      File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/json/decoder.py", line 355, in raw_decode
        raise JSONDecodeError("Expecting value", s, err.value) from None
    json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
    
    opened by dannypaton 2
  • Don't working

    Don't working

    Traceback (most recent call last): File "d:\Users****\Desktop*\OpenSea-NFT-Stealer\opensea.py", line 71, in data = json.loads(requests.get(f"https://api.opensea.io/api/v1/assets?order_direction=asc&offset={offset}&limit=50&collection={CollectionName}&format=json", headers=headers).content.decode()) File "C:\Program Files\Python310\lib\json_init_.py", line 346, in loads return _default_decoder.decode(s) File "C:\Program Files\Python310\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Program Files\Python310\lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

    ????

    i have add "Accept": "application/json"

    opened by AJkePo 2
  • big problem

    big problem

    Traceback (most recent call last): File "E:\OpenSea-NFT-Stealer-master\opensea.py", line 97, in image = requests.get(asset["image_original_url"]) File "C:\Users\lol\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\api.py", line 75, in get return request('get', url, params=params, **kwargs) File "C:\Users\lol\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\api.py", line 61, in request return session.request(method=method, url=url, **kwargs) File "C:\Users\lol\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 529, in request resp = self.send(prep, **send_kwargs) File "C:\Users\lol\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 639, in send

    #0000: Data -> [✓] (Already Downloaded) adapter = self.get_adapter(url=request.url) File "C:\Users\lol\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 732, in get_adapter raise InvalidSchema("No connection adapters were found for {!r}".format(url)) requests.exceptions.InvalidSchema: No connection adapters were found for 'ipfs://QmRRPWG96cmgTn2qSzjwr2qvfNEuhunv6FNeMFGa9bx6mQ'

    Process finished with exit code 1

    opened by xl180500 2
  • Unable to Download colletction (just creating 0029.json)

    Unable to Download colletction (just creating 0029.json)

    Unable to download the boredapeyachtclub, mutant-ape-yacht-club, bored-ape-kennel-club and bored-ape-chemistry-club collection (just creating insert number.json) then stopping with the following output:

    :\Users\chris\Desktop\OpenSea-NFT-Stealer-master>py opensea.py boredapeyachtclub

    Beginning download of "boredapeyachtclub" collection.

    #0029: Data -> [✓] (Successfully downloaded) Traceback (most recent call last): File "C:\Users\chris\Desktop\OpenSea-NFT-Stealer-master\opensea.py", line 161, in image = requests.get(image_url) File "C:\Users\chris\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\api.py", line 75, in get return request('get', url, params=params, **kwargs) File "C:\Users\chris\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\api.py", line 61, in request return session.request(method=method, url=url, **kwargs) File "C:\Users\chris\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 529, in request resp = self.send(prep, **send_kwargs) File "C:\Users\chris\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 639, in send adapter = self.get_adapter(url=request.url) File "C:\Users\chris\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 732, in get_adapter raise InvalidSchema("No connection adapters were found for {!r}".format(url)) requests.exceptions.InvalidSchema: No connection adapters were found for 'ipfs://QmQnps7UF7zCBk2bsANKTuXeeuhVRhxcgWfc3AHq2B6gcc'

    Successfully downloaded proof-moonbirds collection (haven't tried more)!

    opened by Derotron 1
  • [BUG] Fails on IPFS

    [BUG] Fails on IPFS

    Describe the bug Requests get call fails on getting an IPFS url.

    The collection you were trying to download evmavericks

    Expected behavior Should download images.

    Terminal output (please show the error that the console showed)

    Traceback (most recent call last):
      File "/Users/xyz/Documents/Draw/OpenSea-NFT-Stealer/opensea.py", line 163, in <module>
        image = requests.get(image_url)
      File "/Users/xyz/.pyenv/versions/3.10.2/lib/python3.10/site-packages/requests/api.py", line 73, in get
        return request("get", url, params=params, **kwargs)
      File "/Users/xyz/.pyenv/versions/3.10.2/lib/python3.10/site-packages/requests/api.py", line 59, in request
        return session.request(method=method, url=url, **kwargs)
      File "/Users/xyz/.pyenv/versions/3.10.2/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
        resp = self.send(prep, **send_kwargs)
      File "/Users/xyz/.pyenv/versions/3.10.2/lib/python3.10/site-packages/requests/sessions.py", line 695, in send
        adapter = self.get_adapter(url=request.url)
      File "/Users/xyz/.pyenv/versions/3.10.2/lib/python3.10/site-packages/requests/sessions.py", line 792, in get_adapter
        raise InvalidSchema(f"No connection adapters were found for {url!r}")
    requests.exceptions.InvalidSchema: No connection adapters were found for 'ipfs://QmecvpNSiaSSKqvLRVCG3g3r9ifaRh1LgVjzDvDfztVmue'
    

    The fix is simple, the problem is at line 163 of opensea.py, there is a requests get command that precedes the url check for ipfs links. It needs to be moved after the ipfs or fail gracefully.

    if not len(image_url) == 0:
           image = requests.get(image_url)
    
    opened by evm626 0
  • [BUG] Erros, can't even start

    [BUG] Erros, can't even start

    Describe the bug I followed the process for installation, installed requirements, run script and it can't even start showing errors https://prnt.sc/6SF4830dRA54

    **Terminal output C:\Users\logde\OneDrive\Desktop\OpenSea-NFT-Stealer-master>py opensea.py lazy-lions

    Beginning download of "lazy-lions" collection.

    Traceback (most recent call last): File "C:\Users\logde\OneDrive\Desktop\OpenSea-NFT-Stealer-master\opensea.py", line 124, in data = json.loads(scraper.get(f"https://api.opensea.io/api/v1/assets?order_direction=asc{token_ids}&limit=50" File "C:\Users\logde\AppData\Local\Programs\Python\Python310\lib\json_init_.py", line 346, in loads return _default_decoder.decode(s) File "C:\Users\logde\AppData\Local\Programs\Python\Python310\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Users\logde\AppData\Local\Programs\Python\Python310\lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

    C:\Users\logde\OneDrive\Desktop\OpenSea-NFT-Stealer-master>**

    paste here
    
    opened by therawest 3
  • [BUG] Opensea Shared contract does not find token id

    [BUG] Opensea Shared contract does not find token id

    Describe the bug Token ID of a NFT collection created using OpenSea's shared storefront contract does not have a normal token id (1,2,3...).

    Token id is large id (15870050116252419024525470175072539588947014030762753463389720307334746472449, 15870050116252419024525470175072539588947014030762753463389720230368932528129)

    The collection you were trying to download featheredunderdogclub

    Expected behavior We would need check the collection's list of token IDs first, then increment through that array

    Terminal output (please show the error that the console showed)

    Beginning download of "featheredunderdogclub" collection.
    
    
    
    Finished downloading collection.
    
    
    Statistics
    -=-=-=-=-=-
    
    Total of 933 units in collection "featheredunderdogclub".
    
    Downloads:
    
      JSON Files ->
        0 successfully downloaded
        0 already downloaded
    
      Images ->
        0 successfully downloaded
        0 already downloaded
        0 failed
    
    
    You can find the images in the images/featheredunderdogclub folder.
    The JSON for each NFT can be found in the images/featheredunderdogclub/image_data folder.
    
    opened by benbuschmann 0
  • Error when running on windows

    Error when running on windows

    Getting an error on line 123.

    D:\Downloads\OpenSea-NFT-Stealer-master>python opensea.py invisiblefriends

    Beginning download of "invisiblefriends" collection.

    Traceback (most recent call last): File "D:\Downloads\OpenSea-NFT-Stealer-master\opensea.py", line 123, in data = json.loads(scraper.get(f"https://api.opensea.io/api/v1/assets?order_direction=asc{token_ids}&limit=50" File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.752.0_x64__qbz5n2kfra8p0\lib\json_init_.py", line 346, in loads return _default_decoder.decode(s) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.752.0_x64__qbz5n2kfra8p0\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.752.0_x64__qbz5n2kfra8p0\lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

    opened by gguy825 1
  • Script stops on ~400th item, unexpectedly...

    Script stops on ~400th item, unexpectedly...

    Describe the bug

    everything seemed to chug along fine for about 400 images... then what might be an inconsistency in an item record?! stops the process... altogether

    if this cant be fixed quickly, perhaps there a simple way to adjust the script to start on item eg 404, so as to collect all other items... me no gud coder :P cheers

    The collection you were trying to download

    https://opensea.io/collection/council-of-kingz-official

    Expected behavior

    download the image/json of the NFT

    Terminal output (please show the error that the console showed)

    #0403: Data -> [✓] (Already Downloaded) Traceback (most recent call last): File "D:\xxxxxxxxxx\OpenSea-NFT-Stealer-master\opensea.py", line 142, in image = requests.get(image_url) File "C:\Users\xxxxxxxxxx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\requests\api.py", line 75, in get return request('get', url, params=params, **kwargs) File "C:\Users\xxxxxxxxxx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\requests\api.py", line 61, in request return session.request(method=method, url=url, **kwargs) File "C:\Users\xxxxxxxxxx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\requests\sessions.py", line 515, in request prep = self.prepare_request(req) File "C:\Users\xxxxxxxxxx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\requests\sessions.py", line 443, in prepare_request p.prepare( File "C:\Users\xxxxxxxxxx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\requests\models.py", line 318, in prepare self.prepare_url(url, params) File "C:\Users\xxxxxxxxxx\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\requests\models.py", line 392, in prepare_url raise MissingSchema(error) requests.exceptions.MissingSchema: Invalid URL '': No scheme supplied. Perhaps you meant http://?

    opened by stealthsepa 3
Owner
Dan
Python (most fluent), JS, learning C, trying to start learning assembly... Additionally, I know HTML and CSS3.
Dan
OpenSea-Python-Bot - OpenSea Python Bot can be used in 2 modes

OpenSea-Python-Bot OpenSea Python Bot can be used in 2 modes. When --nft paramet

null 49 Feb 10, 2022
Opensea-upload-with-recaptcha-solution - Updated opensea uploading solution with recaptcha pass

opensea-upload-with-recaptcha-solution updated opensea uploading solution with r

byeonggeon sim 25 Nov 15, 2022
Bulk NFT uploader to OpenSea!

Bulk NFT Uploader Description Simple easy peasy python script which logins to opensea account using metamask and bulk uploads NFT to your default coll

Lakshya Khera 25 May 23, 2022
Nft-maker - Create your own NFT!

nft-maker How to If you're going to use this program, change the pictures in the "images" folder. All images must be of the same resolution and size.

Georgii Arakelian 4 Mar 13, 2022
Simple-nft-tutorial - A simple tutorial on making nft/memecoins on algorand

nft/memecoin Tutorial on Algorand Let's make a simple NFT/memecoin on the Algora

null 2 Feb 5, 2022
NFT Generator - A NFT Generator created using Python

NFT_Generator v1 An NFT Generator created using Python. This NFT Generation tool

null 3 Dec 2, 2022
NFT Generator: A modular NFT generator application

NFT Generator A simple passion project done with the role to learn a bit about h

null 2 Aug 30, 2022
Automatically render tens of thousands of unique NFT images individually as png's.

Blend_My_NFTs Description This project is a work in progress (as of Oct 24th, 2021) and will eventually be an add on to Blender. Blend_My_NFTs is bing

Torrin Leonard 894 Dec 29, 2022
This an API wrapper library for the OpenSea API written in Python 3.

OpenSea NFT API Python 3 wrapper This an API wrapper library for the OpenSea API written in Python 3. The library provides a simplified interface to f

Attila Tóth 159 Dec 26, 2022
OpenSea Python Bot coded purely in Python3.

OpenSea Python Bot coded purely in Python3. It utilises everything from OpenSea API to continuously monitor NFT's. It can be used to snipe or monitor if something falls below floor value.

OpenSea Elite Sniper 20 Dec 29, 2021
Using Streamlit to build a simple UI on top of the OpenSea API

OpenSea API Explorer Using Streamlit to build a simple UI on top of the OpenSea API. ?? Contributing Contributions, issues and feature requests are we

Gavin Capriola 1 Jan 4, 2022
NFTs Upload to OpenSea CuseEdition

NFTs-Upload-to-OpenSea-CuseEdition YOUTUBE VIDEO -> Soon... Download Python and

Lil Cuse 2 Jan 4, 2022
A Telegram Bot to generate permanent Stream and Download links for any Telegram file

Telegram File To Stream Link This bot will give you permanent Stream and Download links for Telegram files Deploy the Bot Press the below button to de

Shadow 80 Dec 16, 2022
AirDrive lets you store unlimited files to cloud for free. Upload & download files from your personal drive at any time using its super-fast API.

AirDrive lets you store unlimited files to cloud for free. Upload & download files from your personal drive at any time using its super-fast API.

Sougata 4 Jul 12, 2022
Automatically send commands to send Twitch followers to any Twitch account.

Automatically send commands to send Twitch followers to any Twitch account. You just need to be in a Twitch follow bot Discord server!

Thomas Keig 6 Nov 27, 2022
SmsSender v3.0.0 - the script is designed to send free SMS to any number and with any text.

SmsSender v3.0.0 - скрипт предназначен для бесплатной отправки SMS на любой номер и с любым текстом. Возможны небольшие баги, в скором времени исправл

Андрей Сергеев 20 Dec 3, 2021
arweave-nft-uploader is a Python tool to improve the experience of uploading NFTs to the Arweave storage for use with the Metaplex Candy Machine.

arweave-nft-uploader arweave-nft-uploader is a Python tool to improve the experience of uploading NFTs to the Arweave storage for use with the Metaple

0xEnrico 84 Dec 26, 2022
A telegram bot to monitor the latest NFT price on BSC.

NFT_Monitor This is a telegram bot for monitoring price and ranking of NFT on Binance Smart Chain. Can fetch latest ranking and price in real time. .P

Niko Pang 10 Oct 9, 2022
This bot automaticaly access to giveaway ! You can won free NFT !

This bot automaticaly access to giveaway ! You can won free NFT !

2s.py 28 Oct 20, 2022