Skip to content

vlasn/pwp-check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

de16b14 · Aug 24, 2018

History

4 Commits
Aug 22, 2018
Aug 22, 2018
Aug 24, 2018
Aug 22, 2018
Aug 22, 2018

Repository files navigation

PWP checker

Crawls the DCI page for planeswalker points for the last season as Wizards has refused to provide a decent API for this.

Installation:

  • Make sure you have NodeJS 10+ and Git installed
  • Check out this repository: git clone https://github.com/vlasn/pwp-check.git
  • Install dependencies (puppeteer and xml2js) via npm install
  • Run the script: node .
  • In case you're too lazy to rename your input file, you can specify its name as the first argument: node . iamlazy.xml. Defaults to input.xml
  • Should you want to go faster, you can also define the amount of time the script should wait (ms) after opening the points' modal as the second argument: node . input.xml 500. This defaults to 1000ms or 1 second. Might not be a good idea, based on how fast your computer is.

The script expects your input file format to be XML, as per the following model:

<LocalPlayers>
    <Player FirstName="Veljo" LastName="Lasn" MiddleInitial="" DciNumber="9115259053" CountryCode="EE" IsJudge="False" />
</LocalPlayers>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published