Skip to content

Commit a57363f

Browse files
authored
Rename events to calendar (#55)
1 parent e31223d commit a57363f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ func main() {
3737
scrapeProfiles := flag.Bool("profiles", false, "Alongside -scrape, signifies that professor profiles should be scraped.")
3838
// Flag for soc scraping
3939
scrapeOrganizations := flag.Bool("organizations", false, "Alongside -scrape, signifies that SOC organizations should be scraped.")
40-
// Flag for event scraping
41-
scrapeEvents := flag.Bool("events", false, "Alongside -scrape, signifies that events should be scraped.")
40+
// Flag for calendar scraping
41+
scrapeCalendar := flag.Bool("calendar", false, "Alongside -scrape, signifies that calendar should be scraped.")
4242
// Flag for astra scraping
4343
scrapeAstra := flag.Bool("astra", false, "Alongside -scrape, signifies that Astra should be scraped.")
4444
// Flag for mazevo scraping
@@ -101,8 +101,8 @@ func main() {
101101
scrapers.ScrapeCoursebook(*term, *startPrefix, *outDir)
102102
case *scrapeOrganizations:
103103
scrapers.ScrapeOrganizations(*outDir)
104-
case *scrapeEvents:
105-
scrapers.ScrapeEvents(*outDir)
104+
case *scrapeCalendar:
105+
scrapers.ScrapeCalendar(*outDir)
106106
case *scrapeAstra:
107107
scrapers.ScrapeAstra(*outDir)
108108
case *scrapeMazevo:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const CALENDAR_LINK string = "https://calendar.utdallas.edu/calendar"
2626

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

29-
func ScrapeEvents(outDir string) {
29+
func ScrapeCalendar(outDir string) {
3030

3131
chromedpCtx, cancel := utils.InitChromeDp()
3232
defer cancel()

0 commit comments

Comments
 (0)