Skip to content

Commit 642e87c

Browse files
committed
rename files for calendar scraper and parser
1 parent 3d18bf7 commit 642e87c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

parser/calendarParser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ var roomNumbers = map[string]string {
156156

157157
func ParseCalendar(inDir string, outDir string) {
158158

159-
calendarFile, err := os.ReadFile(inDir + "/events.json")
159+
calendarFile, err := os.ReadFile(inDir + "/eventScraped.json")
160160
if err != nil {
161161
panic(err)
162162
}

scrapers/calendar.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ func ScrapeCalendar(outDir string) {
133133
log.Printf("Parsed the events of page %d successfully!\n\n", page+1)
134134
}
135135

136-
if err := utils.WriteJSON(fmt.Sprintf("%s/events.json", outDir), events); err != nil {
136+
if err := utils.WriteJSON(fmt.Sprintf("%s/eventScraped.json", outDir), events); err != nil {
137137
panic(err)
138138
}
139139
log.Printf("Finished parsing %d events successfully!\n\n", len(events))

0 commit comments

Comments
 (0)