This module is wrapper of steam library (https://github.com/ValvePython/steam). Module uses BeautifulSoup and Requests mechanics to parse and present data.
To use this start with installing:
- Download any release (recommended) or branch you want to explore
- Install dependencies from
pip install -r requirements.txt
- Unpack and install with command
pip install .
- To import module in your project simply write
import steam_csgo
- Now you able to use CSGOApi and WebAuth (modified) classes
from steam_csgo import CSGOApi
username = input("username: ")
password = input("password: ")
cli = CSGOApi()
cli.cli_login_in(username, password)
cli.get_api_key()
me, games = cli.main() # used to response most important info
from steam_csgo import CSGOApi
user_object = CSGOApi(username)
rsa = CSGOApi.get_rsa(username)
# password should be crypted before passing
# you can pass params such as:
# captcha code, captcha id, email code (steam guard), two-factor code, language
loggin_status = user_object.login_in(username, password, rsa['timestamp'])
me, games = user_object.main() # used to response most important info
For more flexible way to get certain info about user (player) all methods related to full auto parse starts with load prefix
load_api_key
- used to return API key valueload_all_games
- used to load games for all gamemodes (competitive, wingman)load_games
- used to load all games for specific gamemodesload_new_games
- used to load new games until date which should be specifiedload_me_full
- used to load user steam profile data, matchmaking data and in-game cooldown statusload_me
- used to load user steam profile dataload_matchmaking_data
- used to load user in-game matchmaking dataload_cooldown_status
- used to load user in-game cooldown statusload_me_ban_status
- check user permanent ban status (VAC, overwatch ban statuses)
Be aware that module uses steam web API features, that require API key, which only "verified" account (account that spend at lease 5$) can receive.