Icon assets for cryptocurrencies
As GitHub has a limit of 1000 files per folder, this repository contains only the top 100 icons from Coinmarketcap. Run the Python script to download all 9842 icons!
Run the icon scraper to download all cryptocurrency icons from Coinmarketcap.
Clone this project to your local project folder:
git clone https://github.com/IKTIKN/crypto-icons.git
Run the script
cd crypto-icons/src
python3 icon_scraper.py
This script generates an output
folder with the following content:
- Folder
icons
with subfoldersid
,name
andsymbol
- Json file named
icon_map.json
Icons are stored as .png
images and located in the output/icons
folder. The script saves only unique filenames: The first occurence of BTC.png
will be saved, skipping all other currencies who share the same name or symbol. The id
folder contains all icons listed on Coinmarketcap. While the name
and symbol
folders contain only the unique filenames.
Folder | Filename | Unique |
---|---|---|
id | 1.png | 9842 |
name | Bitcoin.png | 9673 |
symbol | BTC.png | 8262 |
NOTE: The script downloads the largest pixelsize available: 128px
, 64px
, 32px
or 16px
. So not all icons share the same size. In rare cases a currency has no icon at all, these will be skipped.
The icon map located at output/icon_map.json
contains a list with all downloaded icons. Use this in your application to map unique Coinmarketcap id's to cryptocurrency names or symbols.
[
{
"id": "1",
"name": "Bitcoin",
"symbol": "BTC"
}
]
NOTE: The name
and symbol
values contain upper- and lowercase characters as provided by Coinmarketcap. If a value contains /
, it will be replaced with -
.