Skip to content

woctezuma/match-steam-tags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Match Steam Tags

PyPI status Build status Code coverage Code Quality

This repository contains Python code to match Steam tags with appIDs.

Installation

The code is packaged for PyPI, so that the installation consists in running:

pip install steamtags

Usage

Load genres and tags

Ideally, data is loaded from a local cache.

Data is downloaded (and cached) if the local cache is:

  • either unavailable,
  • or obsolete, i.e. downloaded on a previous day.
import steamtags

genres_dict, tags_dict = steamtags.load()

Download genres and tags

Caveat: in the use case described below, data is not locally cached!

SteamSpy provides several Top-100 game rankings:

  • top100in2weeks, with respect to the number of players in the last two weeks
  • top100forever, with respect to the number of players since March 2009
  • top100owned, with respect to the estimated number of owners

These rankings can be used to retrieve and aggregate genres and tags, as such:

import steamtags

genres_dict, tags_dict = steamtags.download(data_source='top100in2weeks')

References