Junk rare finder
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Hamcha d0f49fce07
Refactor cube API, add buy/pool info
1 year ago
cmd Refactor cube API, add buy/pool info 1 year ago
lib Refactor cube API, add buy/pool info 1 year ago
templates Refactor cube API, add buy/pool info 1 year ago
.gitignore Start work on cube page 1 year ago
README.md Add scryfall DB for links and images 1 year ago
package.json Refactor cube API, add buy/pool info 1 year ago
products.csv Initial commit 1 year ago
yarn-error.log Add find, refactor types 1 year ago
yarn.lock Start work on cube page 1 year ago

README.md

mkm junk rare finder

Requirements

  • Node
  • yarn

How to use

Get dependencies

Just run yarn

Get API keys

Go to https://www.cardmarket.com/en/Magic/Account/API and create a Dedicated app.

Put the keys in your environment like so:

export APP_TOKEN=<App token>
export APP_SECRET=<App secret>
export ACCESS_TOKEN=<Access token>
export ACCESS_SECRET=<Access token secret>

Build card db

To use the rare finder, you'll need to build the rare db

  1. Download this: https://www.mtgjson.com/files/AllPrintings.json
  2. Also download this: https://archive.scryfall.com/json/scryfall-default-cards.json
  3. Run yarn build-db

It will create a file called mcmCards.json

Fetch all cards listed by a user

  1. yarn fetch <userid>
  2. yarn find <userid>

User ID can be either a username or user id on cardmarket

Create a cube out of the cheap rares!

WIP, will be yarn cube <userid>