mirror of
https://github.com/SocksPls/hltv-api
synced 2025-04-30 07:33:09 +00:00
fix for date error in get_matches (#46)
matchDayHeadline is now changed from span to div as represented on the website.
This commit is contained in:
parent
b4f9818dc7
commit
42fcd13ab1
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -222,7 +222,7 @@ def get_matches():
|
||||||
|
|
||||||
for match in matchdays:
|
for match in matchdays:
|
||||||
matchDetails = match.find_all("div", {"class": "upcomingMatch"})
|
matchDetails = match.find_all("div", {"class": "upcomingMatch"})
|
||||||
date = match.find({'span': {'class': 'matchDayHeadline'}}).text.split()[-1]
|
date = match.find({'div': {'class': 'matchDayHeadline'}}).text.split()[-1]
|
||||||
for getMatch in matchDetails:
|
for getMatch in matchDetails:
|
||||||
matchObj = {}
|
matchObj = {}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue