Some kind of auto update... type thing...

I wanted to create something that gets live score updates and refreshes the console each time there is some kind of update.

The closest example of this I have is on HLTV.org called the "ScoreBot".
Essentially all it does is tell you who killed who with what weapon, If the bomb is planted or not, all players K/A/D, and the current score of the match.

Would this be doable?

How would I go about doing this?

Would it be easier to do with javascript or something like that?
Web scraping bot? Something like this can be done with python using scrapy. Javascript, eh maybe. I'm not entirely familiar with that language
Would this be doable?


As long as you have a reliable data source to grab from then definitely it would be doable. The reliable data source could be anything from scraping another website for this information (Depending on the site can be quite easy), or even using a publicly available score API for the game you are targeting.

It really all comes down to which game you are targeting (Or is it even a game?) and if the data is available in a semi real time manner (Scoreboard, match scoreboard, etc.).

How would I go about doing this?


As long as the above holds true I would say your first step would be to figure out where to get the information from. First go out and see if there is a score API for the game you want to target, or if there is a website out there that hosts game scores.

Once you figure that out you need to figure out if you want to take the time to learn the API (Usually they are quite simple), or if you want to learn how to scrape the score website to get the information.

As for using the API they usually provide some sort of tutorial and documentation to get you started. In the case of Counterstrike (Which I believe you are talking about in your post), you are in luck since there is the Steam web API which you can use along with some other things.

Steam Web API Overview - http://steamcommunity.com/dev
Steam Web API Global Stats for Game - https://developer.valvesoftware.com/wiki/Steam_Web_API#GetGlobalStatsForGame_.28v0001.29
Steam Web API User States for Game - https://developer.valvesoftware.com/wiki/Steam_Web_API#GetUserStatsForGame_.28v0002.29

Other Related - https://developer.valvesoftware.com/wiki/Steam_Web_API#GetGlobalAchievementPercentagesForApp_.28v0001.29

Steam Server Queries (Can be used to query information from a running game server) - https://developer.valvesoftware.com/wiki/Server_queries

Them can help provide some information if indeed you aim is CS:GO.


As for web scraping that is a large topic to cover. But the basic premise is browsing the webpage for the information that you want then displaying that info. There is plenty of tutorials out there on how to do this in any language.


Would it be easier to do with javascript or something like that?


If you are going to use the Steam API then yeah Javascript might be quite a bit easier. Otherwise use whatever you are most comfortable in.

Hopefully that helps a bit.
Topic archived. No new replies allowed.