https://github.com/elykdeer/scryrs
An alternative to scryfall with caching and mass image downloading capabilities.
https://github.com/elykdeer/scryrs
mtg mtg-cards rust rust-lang scryfall scryfall-api scryfall-cards
Last synced: 9 days ago
JSON representation
An alternative to scryfall with caching and mass image downloading capabilities.
- Host: GitHub
- URL: https://github.com/elykdeer/scryrs
- Owner: ElykDeer
- License: mit
- Created: 2024-04-29T05:08:36.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-12T16:30:27.000Z (about 2 years ago)
- Last Synced: 2026-01-29T09:26:22.558Z (5 months ago)
- Topics: mtg, mtg-cards, rust, rust-lang, scryfall, scryfall-api, scryfall-cards
- Language: Rust
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# scry.rs
A simple alternative to [scryfall](https://github.com/mendess/scryfall-rs) with caching and mass image downloading capabilities.
```rust
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());
}
}
```