def scrape_wesleyan_events(): # scrape Wesleyan Events if not SCRAPE_WESLEYAN_EVENTS: return True try: wesleyan_events_results = wesleyanEvents.scrape_wesleyan_events() except: print "SCRAPER: Unable to scrape Weleyan Events" return False # add to db for res in wesleyan_events_results: add_result = db.add_event(res) if not add_result: print "SCRAPER: Unable to add Wesleyan events to db" return True
def scrape_wesleying(): # scrape Wesleying if not SCRAPE_WESLEYING: return True try: wesleying_results = wesleying.scrape_wesleying() except: print "SCRAPER: Unable to scrape wesleying" return False # add to db for res in wesleying_results: add_result = db.add_event(res) if not add_result: print "AHH COULND'T ADD" return True