Skip to content

CooperGerman/DragonShield-to-Moxfield-CSVs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Important Note

This project is not this crucial anymore as Archidekt (the main reason for this project) now has a DragonShield csv type import functionality. It could still be useful for other purposes though like advanced filtering but other tools seems to catch up with time. Automated export import can still be useful for some people but it is not the main focus of this project anymore. Please feel free to add functionalities especially concerning automation purposes.

What am I ?

This repo contains some scripts the can be used in order to automate a Dragonshield collection export and upload the converted collection to Archidekt.

  • convert.py aims at reformatting DragonSHield exported CSV files into Moxfield acceptable ones.
  • advanced_filtering.py is a more advanced script that can filter the cards based on a list of cards you want to sell. This script uses minimum and maximum prices as well as the minimum number of instances for each card to determine if it should be included in the output.

How to me ?

High level utilization (using seleniumn, automated browser interaction)

make

convert.py

To use this tool simply put all your extracted csv files into a directory and call the python file like follows.

python3 ./DS_convert.py <path to csv files folder>

This will generate folders for each output format (moxfield, manabox) and will put the converted files in them.

advanced_filtering.py

This script is to be used alongside a moxfield exported csv file. It will filter the cards based on the minimum and maximum prices you set as well as the minimum number of instances you want to keep.

python3 ./advanced_filtering.py <path to csv files folder>
    --min_price <minimum price for a card to be included> (default: 0.0)
        // choices : float
    --max_price <maximum price for a card to be included> (default: 'inf')
        // choices : float
    --min_instances <minimum number of instances for a card to be included> (default: 1)
        // choices : int
    --loglvl <log level> (default: INFO)
        // choices : DEBUG, INFO, WARNING, ERROR, CRITICAL, debug, info, warning, error, critical

Example :

python3 ./advanced_filtering.py ./csv_files --min_price 0.5 --max_price 1.0 --min_instances 2

OUTPUT:

Future improvements :

  • Store a local database of cards to avoid having to interrogate scryfall each time
  • Add a GUI
  • Add a way to export the filtered cards to a moxfield database
  • Add a way to export the filtered cards to a deckbox database
  • Add a way to export the filtered cards to a manabox database

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published