An API wrapper library for opensea api.

Overview

Opensea API

An API wrapper library for opensea api.

Installation

pip3 install opensea

Usage

Retrieving assets:

from opensea import get_assets

# This will return a list of assets which you can iterate and get the needed data
asset_list = get_assets(limit=10, verified_only=False)

asset = asset_list[0] # Get the first asset obejct from the list

print(asset.name)
print(asset.description)
print(asset.asset_url)
print(asset.get_floor_price()) # Floor price of the collection

Retrieving bundles:

from opensea import get_bundles

# This will return a list of assets which you can iterate and get the needed data
bundles_list = get_bundles(limit=10)

bundle = bundles_list[0] # Get the first asset obejct from the list

print(bundle.slug)
print(bundle.assets[0].name)
You might also like...
A wrapper for slurm especially on Taiwania2 (HPC CLI)A wrapper for slurm especially on Taiwania2 (HPC CLI)

TWCC-slurm-wrapper A wrapper for slurm especially on Taiwania2 (HPC CLI). For Taiwania2 (HPC CLI) usage, please refer to here. (中文) How to Install? gi

Discord-Wrapper - Discord Websocket Wrapper in python

This does not currently work and is in development Discord Websocket Wrapper in

Python wrapper library for World Weather Online API

pywwo Python wrapper library for World Weather Online API using lxml.objectify How to use from pywwo import * setKey('your_key', 'free') w=LocalWeat

Python library for RetroMMO related stuff, including API wrapper

python library for RetroMMO related stuff, including API wrapper.

PRAW, an acronym for "Python Reddit API Wrapper", is a python package that allows for simple access to Reddit's API.

PRAW: The Python Reddit API Wrapper PRAW, an acronym for "Python Reddit API Wrapper", is a Python package that allows for simple access to Reddit's AP

Python API wrapper around Trello's API

A wrapper around the Trello API written in Python. Each Trello object is represented by a corresponding Python object. The attributes of these objects

PRAW, an acronym for "Python Reddit API Wrapper", is a python package that allows for simple access to Reddit's API.

PRAW: The Python Reddit API Wrapper PRAW, an acronym for "Python Reddit API Wrapper", is a Python package that allows for simple access to Reddit's AP

An API wrapper around the pythonanywhere's API.

pyaww An API wrapper around the pythonanywhere's API. The name stands for pythonanywherewrapper. 100% api coverage most of the codebase is documented

Async ready API wrapper for Revolt API written in Python.

Mutiny Async ready API wrapper for Revolt API written in Python. Installation Python 3.9 or higher is required To install the library, you can just ru

Comments
  • Retrieving bundles

    Retrieving bundles

    I would like to add Bundles to this repository, is that feature welcome? Looking at the source code, I found this comment:

        def get_assets(self, owner: str = "", order_by: str = "pk", order_direction: str = "asc", limit: int = 10, verified_only: bool = False):
            #                                                  ^^
            # I dunno what this 'pk' stands for but I think its the default for fastest ordering
    

    So, to answer your question, pk stands for Primary Key and it is usually used with id field in databases (in this case, it means there is no ordering, that's why it is fast).

    opened by GrbavaCigla 4
  • How to get the specific collection's floor price?

    How to get the specific collection's floor price?

    I tried to get a specific collection's floor price but can't find a way.

    Let's say Cryptoadz, the contract address is here: '0x1cb1a5e65610aeff2551a50f76a87a7d3fb649c6'

    How can I get its floor price?

    Thanks.

    opened by codertesla 1
  • Refactored, retrieving bundles

    Refactored, retrieving bundles

    List of changes I made:

    • Asset.get_assets -> get_assets
    • get_assets is now wrapper for get_opensea
    • Removed unused import in setup.py
    • Splitted Opensea.py to multiple files
    • Updated README.md to include new changes
    • Added bundles

    Todo:

    • Update screenshot from carbon
    • ~~Add bundles~~
    • ~~Test everything~~
    • ~~Add better comments (yours are fine, mine are bad :D)~~
    • ~~Increment version~~

    Edit: this is still a draft, don't merge it yet :)

    Edit 2: I am open for changes.

    Hacktoberfest-accepted 
    opened by GrbavaCigla 1
  • Support for collection stats endpoint

    Support for collection stats endpoint

    Implemented support to a new endpoint (collection stats). A new function was introduced on common module allowing requests where parameter goes directly on url (outside of query strings).

    opened by franciscom0301 0
Owner
Ankush Singh
Just a programmer weeb
Ankush Singh
OpenSea Bulk Uploader And Trader 100000 NFTs (MAC WINDOWS ANDROID LINUX) Automatically and massively upload and sell your non-fungible tokens on OpenSea using Python Selenium

OpenSea Bulk Uploader And Trader 100000 NFTs (MAC WINDOWS ANDROID LINUX) Automatically and massively upload and sell your non-fungible tokens on OpenS

ERC-7211 3 Mar 24, 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
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
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
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
Automatically download any NFT collection from OpenSea.

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 a

Dan 111 Dec 29, 2022
NFTs Upload to OpenSea CuseEdition

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

Lil Cuse 2 Jan 4, 2022
🚀 An asynchronous python API wrapper meant to replace discord.py - Snappy discord api wrapper written with aiohttp & websockets

Pincer An asynchronous python API wrapper meant to replace discord.py ❗ The package is currently within the planning phase ?? Links |Join the discord

Pincer 125 Dec 26, 2022
Aws-lambda-requests-wrapper - Request/Response wrapper for AWS Lambda with API Gateway

AWS Lambda Requests Wrapper Request/Response wrapper for AWS Lambda with API Gat

null 1 May 20, 2022
Python API wrapper library for Convex Value API

convex-value-python Python API wrapper library for Convex Value API. Further Links: Convex Value homepage @ConvexValue on Twitter JB on Twitter Authen

Aaron DeVera 2 May 11, 2022