A python package to download CSGO Demo Files from Match Share Code
Project description
CSGO-DemoURL
The easy way to develop your next CSGO Project
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
- Initialize the
SteamWorker()
instance fromcore.py
- Get SteamAuthenticator Code from
authenticatorCode(secrets=PATH_TO_SECRETS.JSON FILE)
method - Login using
pr_login(uname=USERNAME, pword=PASSWORD, code=STEAM_AUTHENTICATOR_CODE)
method - 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!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
CSGO-DemoURL-1.11.tar.gz
(3.0 kB
view details)
Built Distribution
File details
Details for the file CSGO-DemoURL-1.11.tar.gz
.
File metadata
- Download URL: CSGO-DemoURL-1.11.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 887e8c85a1cb7974208874222f4c846023c9702cb3aa94acdf439dc4775a6266 |
|
MD5 | f0c8c2d63d516d10eb0ddda81bb7e2d5 |
|
BLAKE2b-256 | 59718f853495fa5e17cad9f209e60b0e8bc20df3c36bb05a66f3896cee002bd3 |
File details
Details for the file CSGO_DemoURL-1.11-py3-none-any.whl
.
File metadata
- Download URL: CSGO_DemoURL-1.11-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f22a0007ff2350ff50bd2f9d7a646c3df19f94e0c8abf4eda711fad471e44730 |
|
MD5 | fc7a54ba0cf1620abb3143d804e66232 |
|
BLAKE2b-256 | 0d9cf4bc76cd5fe4ea0121891d9c7d1da0e3c574d599c30a3caf4627c1721907 |