Skip to content

Instantly share code, notes, and snippets.

@alexhanh
Created June 9, 2011 18:18
Show Gist options
  • Select an option

  • Save alexhanh/1017364 to your computer and use it in GitHub Desktop.

Select an option

Save alexhanh/1017364 to your computer and use it in GitHub Desktop.
import sc2reader
from sc2reader.exceptions import ParseError
replay = sc2reader.read("1.SC2Replay")
print replay.build
print replay.release_string
for event in replay.events:
print event.name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment