Skip to main content

Analyze Marvel Strike Force roster info and output colorful charts showing player/character stats

Project description

MSF2CSV

Converts Marvel Strike Force information from MSF.gg into a HTML table with a heat map for player/character stats

History:

MSF.gg used to have a CSV download option which made it easy to load up full roster stats for everyone in the alliance. During a recent "upgrade" this button was removed. Likely a temporary issue, but it still leaves Alliance leaders in a bad spot. This is my attempt at a solution to the problem. I hope you enjoy it. Feel free to provide feedback, questions, comments, etc. My username is "fatcat4096" on Discord.

Requirements:

  1. Install Python 3.x from Python.org
  2. Install Beautiful Soup 4, KeyRing, and Selenium -- from a command prompt: python -m pip install -r requirements.txt
  3. Double click on msf2csv.py

Configuration:

  • Members of Strike Teams are configurable in strike_teams.py. If contents of this file DON'T pertain to your Alliance (or if this file has been deleted), the system will automatically attempt to build another. To do so, it will first check the Team definitions on MSF.gg for Incursion and Gamma raids. If these aren't available, it will generate a generic file template with the current alliance members broken up into 3 groups of 8.
  • The files to output and Lane/Section defintions are in Raids_and_lanes.py. Remove files you don't need from the active list. Change Min_iso and Min_tier to match the level of raid you're running. Change the displayed keys if you like. If this file is broken or deleted, it will be regenerated using default parameters.
  • NOTE: If building a frozen version of this script to distribute, EXCLUDE both raids_and_lanes.py and strike_teams.py from the package. These will both be auto-generated in the same directory as the EXE on first run and the results will be editable by end users, e.g.: pyinstaller msf2csv.py --onefile --exclude-module strike_teams --exclude-module raids_and_lanes
  • For MacOS, you must also specify a target architecture of universal2 to allow the executable to run on both Intel and ARM/M1/M2-based Macs, e.g.: pyinstaller msf2csv.py --onefile --exclude-module strike_teams --exclude-module raids_and_lanes --target-architecture universal2

Usage:

  • At first run, the script will prompt you as to whether you want to store your credentials for Login. These credentials will be stored locally in KeyRing and used only for MSF.gg login.
  • If you would prefer not to store credentials, the system will give you five minutes to log into your desired account. Once in, processing will resume.
  • If you need to update passwords or initially did not enter a password, delete the noprompt file in the local directory or call msf2csv with the -p / --prompt flag.
  • If you would just like the original .csv file output, call this script with the -c / --csv flag.
  • The script will by default use the cached_data file for 24 hours without requesting updated information from the website. To override this default, call msf2csv with the -f / --force flag
  • If Historical data is available, a tab will be added showing the changes made since the earliest data point. To omit the History tab, call msf2csv with the -n / --nohist flag.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

msf2csv-1.0.7.tar.gz (157.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

msf2csv-1.0.7-py3-none-any.whl (168.9 kB view details)

Uploaded Python 3

File details

Details for the file msf2csv-1.0.7.tar.gz.

File metadata

  • Download URL: msf2csv-1.0.7.tar.gz
  • Upload date:
  • Size: 157.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.8

File hashes

Hashes for msf2csv-1.0.7.tar.gz
Algorithm Hash digest
SHA256 14852fd8e6371764316f23f9a59b6a0eeb8015954cbf3d3a70a2be6f179c3d9d
MD5 bbb39089827947ecf939d1526316a5d7
BLAKE2b-256 44a611885750787ea8a4d94945515a8e087be39f950632ce0c784d10aacf0b18

See more details on using hashes here.

File details

Details for the file msf2csv-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: msf2csv-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 168.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.8

File hashes

Hashes for msf2csv-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 302d8d19f68b2fdeb1776a68ef6ae902d218f31696815aa2deeea6fd98d195f4
MD5 27881f44f6b8f3b3e9303a84ec4a0c4d
BLAKE2b-256 03e715b5533be7b57640e40bd9b26b8a12e2e6cd3bb3e4f86be96d65a0eabea9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page