Crates.io | scryers |
lib.rs | scryers |
version | 0.1.4 |
source | src |
created_at | 2024-04-29 05:20:55.29214 |
updated_at | 2024-05-12 16:31:04.635239 |
description | A simple alternative to Scryfall with caching and mass image downloading capabilities. |
homepage | https://github.com/KyleMiles/scryrs |
repository | https://github.com/KyleMiles/scryrs |
max_upload_size | |
id | 1223848 |
size | 19,402 |
A simple alternative to scryfall with caching and mass image downloading capabilities.
use scryers::{
download_all_cards,
bulk::{BulkDownload, BulkDownloadType},
};
fn main() {
// Downloads images for all cards
scryers::download_all_cards();
// Allows you to easily iterate over card information, without needing to re-download Scryfall database information (>140Mb!) every time.
// Lazy loads card info, so initialization speed should be super quick
let cards = BulkDownload::new("./scryfall.db", BulkDownloadType::DefaultCards).unwrap();
for card in cards.cards() {
println!("Image at images/{}-0.jpg", card.name());
}
}