1
0
Fork 0
mirror of https://github.com/SocksPls/hltv-api synced 2025-04-29 15:13:08 +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:
Emil Højlund Larsen 2023-11-29 16:10:47 +01:00 committed by GitHub
parent b4f9818dc7
commit 42fcd13ab1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -222,7 +222,7 @@ def get_matches():
for match in matchdays:
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:
matchObj = {}