Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ func main() {
scrapeProfiles := flag.Bool("profiles", false, "Alongside -scrape, signifies that professor profiles should be scraped.")
// Flag for soc scraping
scrapeOrganizations := flag.Bool("organizations", false, "Alongside -scrape, signifies that SOC organizations should be scraped.")
// Flag for event scraping
scrapeEvents := flag.Bool("events", false, "Alongside -scrape, signifies that events should be scraped.")
// Flag for calendar scraping
scrapeCalendar := flag.Bool("calendar", false, "Alongside -scrape, signifies that calendar should be scraped.")
// Flag for astra scraping
scrapeAstra := flag.Bool("astra", false, "Alongside -scrape, signifies that Astra should be scraped.")
// Flag for mazevo scraping
Expand Down Expand Up @@ -101,8 +101,8 @@ func main() {
scrapers.ScrapeCoursebook(*term, *startPrefix, *outDir)
case *scrapeOrganizations:
scrapers.ScrapeOrganizations(*outDir)
case *scrapeEvents:
scrapers.ScrapeEvents(*outDir)
case *scrapeCalendar:
scrapers.ScrapeCalendar(*outDir)
case *scrapeAstra:
scrapers.ScrapeAstra(*outDir)
case *scrapeMazevo:
Expand Down
2 changes: 1 addition & 1 deletion scrapers/events.go → scrapers/calendar.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const CALENDAR_LINK string = "https://calendar.utdallas.edu/calendar"

var trailingSpaceRegex *regexp.Regexp = regexp.MustCompile(`(\s{2,}?\s{2,})|(\n)`)

func ScrapeEvents(outDir string) {
func ScrapeCalendar(outDir string) {

chromedpCtx, cancel := utils.InitChromeDp()
defer cancel()
Expand Down