1
0
Fork 0
mirror of https://github.com/SocksPls/hltv-api synced 2025-04-30 15:43:07 +00:00

Adds get_match_countdown example

This commit is contained in:
Grant Ephross 2022-07-13 23:15:34 -05:00 committed by GitHub
parent e482a70747
commit 9d0ffbb4b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -329,3 +329,10 @@ Provides an API for HLTV
>>> hltv.get_results_by_date()
[{'team2score': 16, 'team1': 'AGO', 'team2': 'G2', 'team1score': 8, 'map': 'Inferno', 'date': '2018-2-15', 'event': 'ESL Pro League Season 7 Europe'}, ... ]
```
## `get_match_countdown`
```python
>>> hltv.get_match_countdown('https://www.hltv.org/matches/2357385/vertex-vs-aftershock-esl-challenger-melbourne-2022-oceania-closed-qualifier')
'2:18:48'
```