https://github.com/andrewda/hltv-live-games
Get live games on HLTV and their matchid.
https://github.com/andrewda/hltv-live-games
Last synced: about 1 year ago
JSON representation
Get live games on HLTV and their matchid.
- Host: GitHub
- URL: https://github.com/andrewda/hltv-live-games
- Owner: andrewda
- License: mit
- Created: 2015-08-21T17:06:23.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-05-16T16:11:09.000Z (about 9 years ago)
- Last Synced: 2025-04-11T01:49:54.102Z (about 1 year ago)
- Language: JavaScript
- Size: 37.1 KB
- Stars: 16
- Watchers: 5
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HLTV Live Games
[![Codacy][codacy-img]][codacy-url]
[![Steam Donate][steam-donate-img]][steam-donate-url]
## Introduction
This is an incredibly simple module which scrapes games from HLTV. More
features may be added in the future.
## Usage
### getLiveGames(secondary, callback)
If `secondary` is truthy, another request will be made by `hltv-live-games` to
get more information about the games (time and players). Otherwise, only one
request will be made, making it much likely to get rate limited.
```js
const getLiveGames = require('hltv-live-games');
getLiveGames(true, (err, games) => {
if (err) {
console.log(err);
} else {
console.log(games);
}
});
```
[codacy-img]: https://img.shields.io/codacy/grade/1c459a215964481fa286267a4ea9c98d.svg?style=flat-square
[codacy-url]: https://www.codacy.com/app/dassonville-andrew/hltv-live-games
[steam-donate-img]: https://img.shields.io/badge/donate-Steam-lightgrey.svg?style=flat-square
[steam-donate-url]: https://steamcommunity.com/tradeoffer/new/?partner=132224795&token=HuEE9Mk1