mirror of
https://github.com/SocksPls/hltv-api
synced 2025-05-02 16:19:35 +00:00
Compare commits
2 commits
9a477b3eb9
...
a17028459f
Author | SHA1 | Date | |
---|---|---|---|
![]() |
a17028459f | ||
![]() |
23873657ab |
2 changed files with 2 additions and 2 deletions
|
@ -304,7 +304,7 @@ Provides an API for HLTV
|
||||||
'team1': b'Astralis Talent',
|
'team1': b'Astralis Talent',
|
||||||
'team2': b'Apeks Rebels',
|
'team2': b'Apeks Rebels',
|
||||||
'time': '18:10',
|
'time': '18:10',
|
||||||
'url': 'https://hltv.org/matches/2356247/esl-impact-league-season-1-finals-grand-final-esl-impact-league-season-1-finals'},
|
'url': 'https://hltv.org/matches/2356500/astralis-talent-vs-apeks-rebels-weplay-academy-league-season-4'},
|
||||||
...
|
...
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
2
main.py
2
main.py
|
@ -234,7 +234,7 @@ def get_matches():
|
||||||
matchObj = {}
|
matchObj = {}
|
||||||
|
|
||||||
matchObj['date'] = date
|
matchObj['date'] = date
|
||||||
matchObj['url'] = "https://hltv.org" + match.find("a", {"class": "match a-reset"}).get("href")
|
matchObj['url'] = "https://hltv.org" + getMatch.find("a", {"class": "match a-reset"}).get("href")
|
||||||
matchObj['time'] = getMatch.find("div", {"class": "matchTime"}).text
|
matchObj['time'] = getMatch.find("div", {"class": "matchTime"}).text
|
||||||
if getMatch.find("div", {"class": "matchEvent"}):
|
if getMatch.find("div", {"class": "matchEvent"}):
|
||||||
matchObj['event'] = getMatch.find("div", {"class": "matchEvent"}).text.encode('utf8').strip()
|
matchObj['event'] = getMatch.find("div", {"class": "matchEvent"}).text.encode('utf8').strip()
|
||||||
|
|
Loading…
Add table
Reference in a new issue