Skip to content

strongy/sto-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A parsing library for STO Gateway output.

Dependencies

Use pip to install both, making sure they are the right versions!

Input File Format

The import file is extracted from Chrome's Developer Tools. In Chrome 36, this is accessed from View -> Developer -> Developer Tools. Go to the Network tab, then log into the Gateway. Do this before you log in, otherwise the right network access will not be properly captured.

The file is sourced from their WebSocket-style endpoint at /socket.io/1/xhr-polling, and should begin with Proxy_Guild for general fleet information or Proxy_GroupProject for contributions data. If you use sto_fc as a script (rather than library), the input file accepted is Proxy_GroupProject for contributions parsing.

Once you have found the correct source data, click it, then right click from the left-side bar to "Copy Response", then paste it into a text document. You can also save it as a HAR file, which the library will attempt to parse.

screenshot of how to find source data in Chrome 36

Usage

The default invocation: python sto_fc.py path_to_json_or_har fleet_name path_for_csv

Example: python sto_fc.py /Users/foo/tmp/gateway_contribs.har COA /tmp/coa.csv"

Will take the default HAR file, use the name given, and output a CSV of Lifetime Fleet Credit contributions per account to /tmp/coa.csv.

Notes

There are additional functions available in the library currently not documented, such as GrandFleet (which treats multiple fleets as one for processing fleet credit data -- useful for promotions across Fed/KDF fleets), or LFC diffs (from a previous data capture, useful to determine who contributed the most since the last capture)

I'll fix this up when I get time.

About

Python library for STO Gateway JSON parsing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages