Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

demo download #1

Closed
JDeuce opened this issue Jan 14, 2015 · 3 comments
Closed

demo download #1

JDeuce opened this issue Jan 14, 2015 · 3 comments

Comments

@JDeuce
Copy link

JDeuce commented Jan 14, 2015

Hey man this looks like a sweet project. I really want some api that will let me automatically download my recent demos from matchmaking. Have you thought about adding the demo list to this?

@joshuaferrara
Copy link
Owner

I've not thought of adding that in yet. As of writing this comment I'm not even sure if it's possible but ill take a look in a few hours.

@JDeuce
Copy link
Author

JDeuce commented Jan 15, 2015

Alright,the only thing I know for sure is once you select a demo for download, the client goes out over regular http to a URL like http://replay114.valve.net/730/003049563753109520390_1479899742.dem.bz2.

My guess is that it uses some request like the ones you've been tapping into to get some list of matches, and somehow piece together the URLs... but I haven't dug into it yet.

@joshuaferrara
Copy link
Owner

Added in commit a526b02

By using requestRecentGames, you will be able to get a list of recent matches given an accountId. Each match returned has a URL to the dem.bz2 file that you can download.

The readme has a lot more info on what is returned.

joshuaferrara pushed a commit that referenced this issue Aug 2, 2015
joshuaferrara pushed a commit that referenced this issue Feb 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants