#download #card #image #mass #cache #capabilities #scryfall

scryers

A simple alternative to Scryfall with caching and mass image downloading capabilities

5 releases

0.1.4 May 12, 2024
0.1.3 May 12, 2024
0.1.2 May 12, 2024
0.1.1 May 4, 2024
0.1.0 Apr 29, 2024

#152 in Caching

MIT license

19KB
482 lines

scry.rs

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());
  }
}

Dependencies

~4–16MB
~219K SLoC