mtggoldfish-js
MTGGoldfish scrapper for Node.js.
Installation
$ npm install mtggoldfish-js
Usage
const MTGGoldfish = let goldfish =
Sets
goldfishget
or inside async function
let sets = await goldfishget
Output is an array of objects. Each object in array contains set name
(String) and code
(String)
Cards
Function accepts following parameters:
code
(String) required: code of the required setpaper
(Boolean): true by default, false will return online pricesfoil
(Boolean): false by default, true will return foil prices
goldfishget
Output is an array of card objects. Each object contains name
(String) and price
(Float)
Version history
Version | Notes |
---|---|
0.0.4 | Foil prices |
0.0.3 | Parser improvements |
0.0.1 | Initial release |