HLTV icon indicating copy to clipboard operation
HLTV copied to clipboard

[WIP] Add `getEventStats`

Open MonsieurBibo opened this issue 3 years ago • 2 comments

Here is the draft PR of the getEventStats method in order to close #509.

It takes data from https://www.hltv.org/stats/players?event=EVENT_ID

image

  • [X] getEventStats method added
  • [X] Optional flash, opening and pistol stats to reduce the amount of requests made to the API.
  • [x] Parameters like startDate, endDate, or side
  • [x] ⚠️ Use user config instead of default one
  • [ ] Proper Types
  • [ ] Tests
  • [ ] Improve performance (maybe array splice ?)

MonsieurBibo avatar Apr 02 '22 11:04 MonsieurBibo

It might be good to rename the method as getEventPlayersStats or else because other stats are also available for events.

MonsieurBibo avatar May 20 '22 21:05 MonsieurBibo

Well I'm dumb, everything is almost already implemented in getPlayerStats method. What is only needed is to modify the existing method.

MonsieurBibo avatar May 21 '22 23:05 MonsieurBibo

Cleaning up, please open a new pull request if you feel like finishing this feature.

gigobyte avatar Dec 02 '22 17:12 gigobyte