async def METHOD_NAME(profile, profile_dir):
	year, semester, class_number = parse_course(profile)
	# fetch the SIS term id, e.g. 2195
	term_id = await terms.get_term_id_from_year_sem(
		SIS_TERMS_ID, SIS_TERMS_KEY, year, semester
	)
	term_id = int(term_id)
	logger.info(f"{year} {term_id} {class_number}")
	s_emails = await student_emails(term_id, class_number)
	save_emails(profile_dir, profile, 'students', s_emails)
	i_emails = await instructor_emails(term_id, class_number)
	save_emails(profile_dir, profile, 'instructors', i_emails)