Skip to content

Download CSGO Demos using Match Share Code straight from your terminal

License

Notifications You must be signed in to change notification settings

botent/CSGO-DemoURL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSGO-DemoURL

The easy way to develop your next CSGO Project

GitHub issues Build Status Version

Simply get demo file URL of a CSGO Match (which happens to be the toughest part, for some!)

Tech

This projects uses a number of open source projects to work properly:

  • Steam - ValvePython/Steam
  • CSGO - ValvePython/CSGO
  • Gevent - gevent is a coroutine -based Python networking library that uses greenlet to provide a high-level synchronous API on top of the libev or libuv event loop.

And of course this project itself is open source with a public repository on GitHub.

Installation

This project requires Python >3.0 to run.

git clone https://github.com/botent/CSGO-DemoURL.git

or

pip install csgo-demourl

Usage

  1. Initialize the SteamWorker() instance from core.py
  2. Get SteamAuthenticator Code from authenticatorCode(secrets=PATH_TO_SECRETS.JSON FILE) method
  3. Login using pr_login(uname=USERNAME, pword=PASSWORD, code=STEAM_AUTHENTICATOR_CODE) method
  4. Now it is optional but advised to define a function to return Match Demo File URL as ---
def matchInfo():
    matchinfo = worker.getSharecodeInfo(matchcode=MATCH_SHARE_CODE)
    matchid = matchinfo['matchid']
    outcomeid = matchinfo['outcomeid']
    token = matchinfo['token']

    info = worker.getMatchInfo(matchid=matchid, outcomeid=outcomeid, token=token)
    result = json.loads(MessageToJson(info))['matches'][0]['roundstatsall'][23]['map']
    worker.close() # Optional (to logout and disconnect from Steam Account)
    return result
    
resp = matchInfo() # This gives you the demo URL

License

MIT

Free Software, Hell Yeah!

Pages

GitHub Pages

About

Download CSGO Demos using Match Share Code straight from your terminal

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages