

This scraper is very simplistic, going through the webpages one by one. The character encoding is not set to UTF-8 (you can set it on windows by running the command cp 65001in command prompt) UnicodeEncodeError: 'charmap' codec can't encode character '~' in position ~: character maps to Make sure the spreadsheet (.csv) files are not open in any other program Individual deck data is stored at /Archetypes//.csv Note that /characters are omitted from archetype names here Troubleshooting Issue General metagame data is stored at /Metagames/-meta.csv Python metagameScraper.py -f MTGA_formats -getDeckPopularCards - Get metagame info and the most played cards per deck for the MTG Arena formats Reading the output Python metagameScraper.py -f modern - Download general meta info for Modern Note that this will significantly increase the time required to run the script. getDeckPopularCards: Including this argument makes the scraper also get data on the most played cards for each deck. Choose an option between alchemy, brawl, commander, commander_1v1, historic, historic_brawl, legacy, modern, pauper, penny_dreadful, pioneer, standard, vintage, all_formats, MTGA_formats. f or -format: specifies which format's metagame to download. Run metagameScraper.py with the following arguments: Pip3 install beautifulsoup4 and pip3 install requestsĭownload metagameScraper.py and put it in a folder by itself

Install the Beautiful Soup and Requests modules by opening command prompt and running the following commands:
#Mtg goldfish standard decks how to#
A simple web scraper using BeautifulSoup and Requests to get data from MTG Goldfish on the top decks in each format How to use
