From 2a43d8d4cde6d6131c6379bf873fdae01b1adcdb Mon Sep 17 00:00:00 2001 From: Clarence Chan Date: Wed, 13 Sep 2023 21:12:33 -0400 Subject: [PATCH] Include recent past events --- scrape.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scrape.js b/scrape.js index 26ff484b..64714e41 100644 --- a/scrape.js +++ b/scrape.js @@ -7,9 +7,7 @@ async function getEventLinks() { const response = await fetch(url); const text = await response.text(); const root = parse(text); - let links = root.querySelectorAll( - "#events-list-upcoming h3.c-card-event--result__headline" - ); + let links = root.querySelectorAll(".c-card-event--result__headline"); links = links.map( (html) => "https://www.ufc.com" + html.firstChild.getAttribute("href") );