diff --git a/README.md b/README.md index a1da10b..05fbc4f 100644 --- a/README.md +++ b/README.md @@ -474,6 +474,7 @@ uoftscrapers.Athletics { "id": String, "date": String, + "campus": String, "events":[{ "title": String, "location": String, diff --git a/uoftscrapers/scrapers/athletics/utm.py b/uoftscrapers/scrapers/athletics/utm.py index 69eaa4a..04c833b 100644 --- a/uoftscrapers/scrapers/athletics/utm.py +++ b/uoftscrapers/scrapers/athletics/utm.py @@ -60,6 +60,7 @@ def scrape(location='.', month=None): athletics[id_] = OrderedDict([ ('id', id_), ('date', date), + ('campus', 'UTM'), ('events', events) ]) diff --git a/uoftscrapers/scrapers/athletics/utsc.py b/uoftscrapers/scrapers/athletics/utsc.py index 67e70e6..730bb82 100644 --- a/uoftscrapers/scrapers/athletics/utsc.py +++ b/uoftscrapers/scrapers/athletics/utsc.py @@ -49,7 +49,7 @@ def scrape(location='.', month=None): end = item.find(class_='date-display-end').get('content') events.append(OrderedDict([ - ('title', title), + ('title', title.replace('/ ', '/')), ('location', location_), ('building_id', '208'), ('start_time', start), @@ -59,6 +59,7 @@ def scrape(location='.', month=None): athletics[id_] = OrderedDict([ ('id', id_), ('date', date), + ('campus', 'UTSC'), ('events', events) ])