1
0
Fork 0
mirror of https://github.com/SocksPls/hltv-api synced 2025-05-02 08:09:36 +00:00

Compare commits

...

2 commits

Author SHA1 Message Date
David Silva
a17028459f fix(README): url 2022-05-30 10:42:19 +02:00
David Silva
23873657ab fix(get_matches): getMatch 2022-05-30 10:40:49 +02:00
2 changed files with 2 additions and 2 deletions

View file

@ -304,7 +304,7 @@ Provides an API for HLTV
'team1': b'Astralis Talent',
'team2': b'Apeks Rebels',
'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'},
...
]
```

View file

@ -234,7 +234,7 @@ def get_matches():
matchObj = {}
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
if getMatch.find("div", {"class": "matchEvent"}):
matchObj['event'] = getMatch.find("div", {"class": "matchEvent"}).text.encode('utf8').strip()