From 42fcd13ab1d79af0788250166176f237307f2ea2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emil=20H=C3=B8jlund=20Larsen?= Date: Wed, 29 Nov 2023 16:10:47 +0100 Subject: [PATCH] fix for date error in get_matches (#46) matchDayHeadline is now changed from span to div as represented on the website. --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index c94b67a..bb8042f 100644 --- a/main.py +++ b/main.py @@ -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 = {}