utils

dota2.utils.replay_url(match_id, cluster, replay_salt, app_id=570)

Form url for match replay

Parameters:
  • match_id (int) – match id
  • cluster (int) – cluster the match is saved on
  • replay_salt (int) – salt linked to the replay
  • app_id (int) – (optional) app_id for dota
Returns:

url to download the replay of a specific match

Return type:

str

dota2.utils.replay_url_from_match(match, app_id=570)

Form url for match replay

Parameters:
  • match (proto message) – CMsgDOTAMatch
  • app_id (int) – (optional) app_id for dota
Returns:

url to download the replay of a specific match, None if match has not all the information

Return type:

str, None

dota2.utils.metadata_url(match_id, cluster, replay_salt, app_id=570)

Form url for match metadata file

Parameters:
  • match_id (int) – match id
  • cluster (int) – cluster the match is saved on
  • replay_salt (int) – salt linked to the replay
  • app_id (int) – (optional) app_id for dota
Returns:

url to download the metadata of a specific match

Return type:

str

dota2.utils.metadata_url_from_match(match, app_id=570)

Form url for match metadata file

Parameters:
  • match (proto message) –

    CMsgDOTAMatch

  • app_id (int) – (optional) app_id for dota
Returns:

url to download the metadata of a specific match, None if match has not all the information

Return type:

str, None