metadata.pull_from_rt
This module can be used to download NFT metadata and rarity data from rarity.tools. Whereas most of our modules rely on the contract address, this one relies on the exact project name, as mentioned on the rarity.tools website.
$ python3 metadata/pull_from_rt.py --collection cryptopunks
Command Line
usage: pull_from_rt.py [-h] --collection COLLECTION
[--starting_count_y STARTING_COUNT_Y]
[--normalize_trait [{True,False}]]
- -h, --help
show this help message and exit
- --collection <collection>
Collection Name as it appears in the rarity.tools URL e.g.: boredapeyachtclub
- --starting_count_y <starting_count_y>
Only use if you encounter errors due to irregular data structure.
- --normalize_trait {True,False}
Default rarity.tools setting is ‘True’. Most projects also have this turned on.
Internal functions
- metadata.pull_from_rt.download(project_name='vogu', starting_count_y=1, normalize_trait=True)
- Parameters
project_name (
str) –starting_count_y (
int) –normalize_trait (
bool) –
- Return type
None
- metadata.pull_from_rt.save_raw_attributes_csv(collection, raw_attributes, file_path)
- Parameters
collection (
str) –raw_attributes (
dict) –file_path (
str) –
- Return type
None