Skip to content

EmperorPenguin18/libscry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libscry

A Magic: The Gathering library

Uses Scryfall API to generate card data.

Dependencies

curl, sqlite3 and rapidjson

Install

Arch

git clone https://github.com/EmperorPenguin18/libscry
cd libscry
makepkg -si

Or just install from the AUR

Other Linux

git clone https://github.com/EmperorPenguin/libscry
cd libscry
make release
make install #as root

Documentation

Available in docs and examples

Projects using libscry

scrycli

Legal

From the API Docs:

Use of Scryfall Data

As part of the Wizards of the Coast Fan Content Policy, Scryfall provides our card data and image database free of charge for the primary purpose of creating additional Magic software, performing research, or creating community content (such as videos, set reviews, etc) about Magic and related products.

When using Scryfall data, you must adhere to the following guidelines:

- You may not use Scryfall logos or use the Scryfall name in a way that implies Scryfall has endorsed you, your work, or your product.
- You may not require anyone to make payments, take surveys, agree to subscriptions, rate your content, or create accounts in exchange for access to Scryfall data.
- You may not use Scryfall data to create new games, or to imply the information and images are from any other game besides Magic: The Gathering.

And for images:

Image Guidelines

Card images on Scryfall are copyright Wizards of the Coast (and/or their artist, for very old sets) and they are provided for the purpose of creating additional Magic software, or creating community content (such as videos, set reviews, etc) about Magic and related products.

When using images from Scryfall, please adhere to the following guidelines:

- Do not cover, crop, or clip off the copyright or artist name on card images.
- Do not distort, skew, or stretch card images.
- Do not blur, sharpen, desaturate, or color-shift card images.
- Do not add your own watermarks, stamps, or logos to card images.
- Do not place card images in a way that implies someone other than Wizards of the Coast created the card or that it is from another game besides Magic: The Gathering.

In particular, when using the art_crop:

List the artist name and copyright elsewhere in the same interface presenting the art crop, or use the full card image elsewhere in the same interface. Users should be able to identify the artist and source of the image somehow.