mirror of
https://github.com/SocksPls/hltv-api
synced 2025-04-30 07:33:09 +00:00
Merge pull request #25 from grantephross/patch-1
Adds URL to get_matches()
This commit is contained in:
commit
f296947331
1 changed files with 1 additions and 0 deletions
1
main.py
1
main.py
|
@ -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()
|
||||||
|
|
Loading…
Add table
Reference in a new issue