1
0
Fork 0
mirror of https://github.com/SocksPls/hltv-api synced 2025-05-03 08:39:37 +00:00

Compare commits

..

No commits in common. "a17028459f1eee34736e81eecf1e2280afbfc422" and "9a477b3eb97c020c7a49dd080f334244c1afdd6d" have entirely different histories.

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/2356500/astralis-talent-vs-apeks-rebels-weplay-academy-league-season-4'},
'url': 'https://hltv.org/matches/2356247/esl-impact-league-season-1-finals-grand-final-esl-impact-league-season-1-finals'},
...
]
```

View file

@ -234,7 +234,7 @@ def get_matches():
matchObj = {}
matchObj['date'] = date
matchObj['url'] = "https://hltv.org" + getMatch.find("a", {"class": "match a-reset"}).get("href")
matchObj['url'] = "https://hltv.org" + match.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()