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

Merge pull request #25 from grantephross/patch-1

Adds URL to get_matches()
This commit is contained in:
David Silva 2022-05-28 14:20:52 +02:00 committed by GitHub
commit f296947331
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -234,6 +234,7 @@ def get_matches():
matchObj = {} matchObj = {}
matchObj['date'] = date matchObj['date'] = date
matchObj['url'] = match.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()