Skip to content

An alternative to scryfall with caching and mass image downloading capabilities.

License

Notifications You must be signed in to change notification settings

KyleMiles/scryrs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An alternative to scryfall with caching and mass image downloading capabilities.

Topics

Resources

License

Stars

Watchers

Forks

Languages