|
|
|
@ -1,4 +1,4 @@ |
|
|
|
const { hasPath, pathOr, props, uniqBy, eqBy, prop, union } = require('ramda'); |
|
|
|
const { hasPath, pathOr, props } = require('ramda'); |
|
|
|
const parseArgs = require('minimist'); |
|
|
|
const parseArgs = require('minimist'); |
|
|
|
const process = require('process'); |
|
|
|
const process = require('process'); |
|
|
|
|
|
|
|
|
|
|
|
@ -125,9 +125,6 @@ const map_event = ({ node: event }) => { |
|
|
|
}; |
|
|
|
}; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const get_body_inner_text = async (page) => |
|
|
|
|
|
|
|
await page.evaluate('document.querySelector("body").innerText;'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const has_upcoming_events = (body) => |
|
|
|
const has_upcoming_events = (body) => |
|
|
|
body.includes('upcoming events') && |
|
|
|
body.includes('upcoming events') && |
|
|
|
!body.includes('not have any upcoming events'); |
|
|
|
!body.includes('not have any upcoming events'); |
|
|
|
@ -163,7 +160,6 @@ const event_date_to_date_obj = (event) => { |
|
|
|
module.exports = { |
|
|
|
module.exports = { |
|
|
|
by_date, |
|
|
|
by_date, |
|
|
|
event_date_to_date_obj, |
|
|
|
event_date_to_date_obj, |
|
|
|
get_body_inner_text, |
|
|
|
|
|
|
|
get_past_events_from_page, |
|
|
|
get_past_events_from_page, |
|
|
|
get_upcoming_events_from_page, |
|
|
|
get_upcoming_events_from_page, |
|
|
|
has_past_events, |
|
|
|
has_past_events, |
|
|
|
|