I haven’t checked for SC:BW but Blizzard has official parsers/replayers for SC2 on GitHub.