Pirate Deck is a simple tool that helps you find the cheapest prices for Magic: The Gathering (MTG) cards, including 'bootleg' / proxy cards.
When provided a deck list, it will search tcgplayer and blmage finding the cheapest prices using data from scryfall.
Cards, the best locations to buy them, and their prices are cached and refreshed if older than 5 days.
To use Pirate Deck, follow these steps:
- Clone the repository:
git clone https://github.com/HellerCommaA/pirate_deck.git
- Navigate to the project directory:
cd pirate-deck
- Install virtualenv:
python -m pip install virtualenv
- Create a virtualenv:
virtualenv .
- Activate the virtualenv:
source bin/activate
orScripts\activate
on windows - Install requirements:
pip install -r requirements.txt
- Run:
python main.py
A few arguments are available:
-i / --input
required Provide a path to a text file of your decklist- There are multiple ways to generate a list. If your favorite deck builder is not listed, Pirate Deck requires
1 Name of Card
format. Quantity space Name of Card, with no additional 'section' entries. - You can also generate lists from the following export options on popular websites:
- exported as "Text" and "1 Card Name" and "No Headers" from Archidekt
- exported as a .txt from Tappedout
- exported as MTGA format from Moxfield
- There are multiple ways to generate a list. If your favorite deck builder is not listed, Pirate Deck requires
-m / --mass-import
optional Once cards are collected and priced out, will generate an easy to use list for copy and pasting on TCG's mass import tool.-o / --open
optional Optinally opens new tabs in Firefox (and only firefox, sorry) once complete for each card. Note that quantity does not transfer to the tab, so be sure to double check your list. If this option is selected with-m
, will only open links to mage as it's assumed you're using the import tool on tcg.