metadata.pull_from_raritysniffer
This module can be used to download NFT metadata and rarity data from RaritySniffer.
$ python3 metadata/pull_from_raritysniffer.py --contract 0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d
Command Line
usage: pull_from_rt.py [-h] -c CONTRACT [--normalize_traits [{True,False}]]
[--trait_count [{True,False}]]
[--save_raw_data [{True,False}]]
[--compress_raw_data [{True,False}]]
[--collection COLLECTION]
- -h, --help
show this help message and exit
- -c <contract>, --contract <contract>
Collection contract address.
- --normalize_traits {True,False}
Trait Normalization (Default: True)
- --trait_count {True,False}
Trait Count Weight (Default: True)
- --save_raw_data {True,False}
Set to ‘True’ to keep raw metadata for each individual token_id. (Default: False)
- --compress_raw_data {True,False}
Set to ‘True’ to zip raw metadata to save disk space. (Default: False)
- --collection <collection>
Collection name. If not provided, will be derived from API response.
Internal functions
- metadata.pull_from_raritysniffer.download(contract_address, normalize_traits=True, trait_count=True, save_raw_data=False, compress_raw_data=False, collection=None)
- Parameters
contract_address (
str) –normalize_traits (
bool) –trait_count (
bool) –save_raw_data (
bool) –compress_raw_data (
bool) –collection (
Optional[str]) –