Skip to content

cderickson/Scripts

Repository files navigation

zip-mtgo-logs.py

- Scans PC for MTGO GameLog and DraftLog files.
- Copies the files it find into a .zip file to be uploaded to MTGO-DB for processing.

multifaced_cards.py

- Pull names of Split, Transform, DFC, MDFC, Adventure cards using Scryfall API.
- Stored in .txt file.
- Used as an input for MTGO-Tracker.

vintage-db.py

- Download latest MTGO Vintage metagame data from community maintained Google Sheet.
- Clean, format, and save data to CSV.
- Insert new records to MySQL database.
- Required Inputs: Google Sheets ID, MySQL Login.

espn-ff-scores.py

- Download weekly scores and matchups from ESPN Fantasy Football leagues and save to .csv.
- Login will be prompted for if league is not set to public.
- Approximate run time: 2 minutes/year.
- Required Inputs: League ID, Year, and Total Scoring Periods (Regular Season Weeks + Post-season Rounds).

mtg-goldfish-lists.py

- Scrapes MTGGoldfish.com for uniquely named decklists with 2 or more occurrences.
- Saves lists as .txt files separated into folders by Month.
- Saves an ALL_DECKS file for use with MTGO-Tracker.
- Required Inputs: Month (YYYY-MM), Format.

pgn-script.py

- Parses all .pgn files in script folder location.
- Creates a table with each record representing individual chess moves and resulting board state.
- Saves table as .csv file.
- Required Inputs: Folder containing one or more .pgn files and script file.

sportradar-nfl.py

- Used to interact with Sportradar NFL API.
- Download Season, Season Schedule, Game_IDs, and Play-By-Play data.
- Parses Play-By-Play .json data and writes to .csv.
- Require Inputs: Sportradar API key.