mirror of
https://github.com/clarencechaan/ufc-cal.git
synced 2026-10-19 00:38:30 -07:00
don't scrape prelims time
This commit is contained in:
1 parent
e159511920
commit
8f46b25d06
1 file changed
+2
-6
@@ -28,11 +28,6 @@ async function getDetailsFromEventLink(url) {
|
||||
let date = root
|
||||
.querySelector(".c-hero__headline-suffix")
|
||||
.getAttribute("data-timestamp");
|
||||
let prelimsTime = root
|
||||
.querySelector(
|
||||
"#main-card-id > ul > li:nth-child(2) > div > div > div.c-listing-viewing-option__column.c-listing-viewing-option__column--left > div.c-listing-viewing-option__time.tz-time-change-inner"
|
||||
)
|
||||
?.getAttribute("data-timestamp");
|
||||
let location = root
|
||||
.querySelector(".field--name-venue")
|
||||
.innerText.replaceAll("\n", "")
|
||||
@@ -88,7 +83,6 @@ async function getDetailsFromEventLink(url) {
|
||||
name,
|
||||
url,
|
||||
date,
|
||||
prelimsTime,
|
||||
location,
|
||||
fightCard,
|
||||
mainCard,
|
||||
@@ -111,3 +105,5 @@ async function getAllDetailedEvents() {
|
||||
console.error(error);
|
||||
}
|
||||
}
|
||||
|
||||
export { getAllDetailedEvents };
|
||||
Reference in new issue
Block a user