From 1ce33609ccf02582bfd466f457299792d36aece5 Mon Sep 17 00:00:00 2001 From: grantephross <77510782+grantephross@users.noreply.github.com> Date: Sat, 28 May 2022 00:41:52 -0500 Subject: [PATCH] Adds URL to get_matches() Allows you to get matchid/match page url info out of the API for upcoming matches --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index b749ee1..b923a56 100644 --- a/main.py +++ b/main.py @@ -232,6 +232,7 @@ def get_matches(): matchObj = {} matchObj['date'] = date + matchObj['url'] = match.find("a", {"class": "match a-reset"}).get("href") matchObj['time'] = getMatch.find("div", {"class": "matchTime"}).text if getMatch.find("div", {"class": "matchEvent"}): matchObj['event'] = getMatch.find("div", {"class": "matchEvent"}).text.encode('utf8').strip()