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

scryers

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

5 releases

new 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

#103 in Caching

Download history 106/week @ 2024-04-23 242/week @ 2024-04-30 405/week @ 2024-05-07

753 downloads per month

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–19MB
~256K SLoC