It's one stop shop for generating data for MTG Familiar!
This is an IntelliJ IDEA project, which can also be opened in Android Studio. To build a JAR, follow these instructions: https://www.jetbrains.com/help/idea/compiling-applications.html#build_artifact
gh-token.txt
file containing a github personal access token and put it in this project's root directory. It should look like this:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
tcgp_keys.json
file with TCGPlayer.com API keys from http://developer.tcgplayer.com/ and put it in this project's root directory. It should look like this:
{
"ACCESS_TOKEN": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"PRIVATE_KEY": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"PUBLIC_KEY": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
}
cron
to run update_data.sh -p -r -k tcgp_keys.json
daily, except Tuesdays at 2am EST. This checks for new cards and comprehensive rules, which is fast because version can be checked before parsing.cron
to run update_data.sh -p -r -k tcgp_keys.json -j
weekly, on Tuesdays at 2am EST. This also checks for new judge documents, which is slow because the judge documents aren't versioned and must be parsed each time.