Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cawfree/opensea-floor-looks-rare

🧸 πŸ’Έ Determine the rarity of floor NFTs on OpenSea.
https://github.com/cawfree/opensea-floor-looks-rare

erc1155 erc721 ethereum nft non-fungible opensea

Last synced: 11 days ago
JSON representation

🧸 πŸ’Έ Determine the rarity of floor NFTs on OpenSea.

Awesome Lists containing this project

README

        

# opensea-floor-looks-rare

## πŸ“š How it works! [(video)](https://twitter.com/cawfree/status/1471599400187273223)

This project depends on [__Puppeteer__](https://github.com/puppeteer/puppeteer) to programmatically scrape [__OpenSea__](https://opensea.io/) and [__rarity.tools__](https://rarity.tools/) for data, since it's not directly available using an API.

`opensea-floor-looks-rare` browses a specified NFT collection on OpenSea (ordered by `BUY_NOW`, `PRICE_ASCENDING`, i.e. sorts by the cheapest available to purchase), and parses the webpage for the currently available floor prices. Once collected, it combines the collected information with rarity data sourced by rarity tools.

This means you'll need to have a [__Chromium Browser__](https://www.chromium.org/) installed and `opensea-floor-looks-rare` will try to programmatically automate a browser window in the background.

## πŸš€ Usage!

To invoke, use `npx opensea-floor-looks-rare`:

```sh
npx opensea-floor-looks-rare executable_path="/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome" --collection_slug="rumble-kong-league" --number_of_steps=5
```

You may specify a `collection_slug` to control which collection of NFTs to search for, and a `number_of_steps` to roughly control how many NFTs on the OpenSea floor are processed.

With no parameters specified, it'll default to `--collection_slug=boredapeyachtclub --number_of_steps=15`.

Once finished, you'll be presented with a table of the calculated rarities. You'll be surprised by the variation!

```
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Token ID β”‚ Price β”‚ Ranking on rarity.toolsβ„’ β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ #1413 β”‚ 48.84Ξ β”‚ #6607 β”‚
β”‚ #1715 β”‚ 52.4Ξ β”‚ #9695 β”‚
β”‚ #3003 β”‚ 53Ξ β”‚ #7571 β”‚
β”‚ #3041 β”‚ 50.53Ξ β”‚ #8938 β”‚
β”‚ #3583 β”‚ 51Ξ β”‚ #9705 β”‚
β”‚ #4093 β”‚ 52.5Ξ β”‚ #6985 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
```

You can also define a `--reference_collection_slug` if you wish to compare floor tokens of one collection using the rarity of another. This is useful for collections like [__World of Women Galaxy__](https://opensea.io/collection/world-of-women-galaxy), whose attributes in the initial 10,000 would carry over some attributes from [__World of Women__](https://opensea.io/collection/world-of-women):

```sh
npx opensea-floor-looks-rare --collection_slug="world-of-women-galaxy" --reference_collection_slug="world-of-women-nft" --number_of_steps=20
```

## ✌️ License!
[__MIT__](./LICENSE.md)