This repository contains tools to analyze the board game tokaido. This article discusses the code and results for collecting bga arena mode games.
To collect bga data, you must include a file accounts.py
that defines ACCOUNTS = [(email1, password1), (email2, password2), ...]
. Be mindful that scraping can incur significant costs for the website. Please contact a bga admin before attempting to use this code for scraping.
The following produces the data and results used in the article:
import bga_scraping as bga
import arena_results as arena
# get all tables with one of the top 10 season 5 arena players
tables = bga.get_top_arena_tables(5, 10)
# save the tables replays
bga.save_table_replays_batch(tables.keys(), 's5-arena')
# make a file with all results and a file with basic statistics
arena.create_results_summary(tables, 's5-arena')