Skip to content

mtgmagicalhack/mtg-standings-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mtg-standings-parser

Create a JSON file from a MTG standings website.

mtg-standings-parser is a little script on top of goose-parser that extracts structured data from a standings website.

Installation

yarn install

Usage

Run the parser, pass a complete url as parameter.

yarn run parse -- url

Example

yarn run parse -- http://magic.wizards.com/en/events/coverage/ptsoi/final-standings-2016-04-24

will create a JSON file with the following structure:

[
    {
        "id": "steve-rubin",
        "name": "Steve Rubin",
        "propoints": 30,
        "matchpoints": 37,
        "money": 40000
    },
    …
]

Parsing mythic championships

yarn run parse -- https://magic.wizards.com/en/events/coverage/2019MC1/final-standings --mythic

Parsing team standings

yarn run parse -- https://magic.wizards.com/en/events/coverage/pt25a/final-standings-2018-08-05 --team

Development

Run basic test coverage your code.

yarn test

About

Create a JSON file from a MTG standings website

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •