diff --git a/pauper_metagame_analysis/mtggoldfish.py b/pauper_metagame_analysis/mtggoldfish.py index 47ae819..49cdd6f 100755 --- a/pauper_metagame_analysis/mtggoldfish.py +++ b/pauper_metagame_analysis/mtggoldfish.py @@ -1,9 +1,9 @@ #!/usr/bin/python3 -from enum import Enum +from enum import Enum, StrEnum from dataclasses import dataclass -class Format(Enum): +class Format(StrEnum): STANDARD = "standard" MODERN = "modern" PIONEER = "pioneer" @@ -33,3 +33,14 @@ class Archetype(): metagamePercentage: int numberOfDecks: int tabletopCost: int + +def get_archetypes_for_format(mformat: Format) -> list[Archetype]: + url = "https://www.mtggoldfish.com/metagame/" + mformat + "/full#paper" + print(url) + +def main(): + archetypes = get_archetypes_for_format(Format.PAUPER) + print(archetypes) + +if __name__ == "__main__": + main()