def _parse(tag): current_day_tag = _get_current_day_tag(tag) meals_raw = _get_meals_raw(current_day_tag) menu_objs = _get_menu_objs(meals_raw) lunch_obj = factories.create_lunch(NAME, menu_objs) return lunch_obj
def _parse(tag): current_day_tag = _get_current_day_tag(tag) meals_raw = _get_meals_raw(current_day_tag) menu_soup = meals_raw[0] menu_objs = _get_menu_objs(meals_raw[1:]) lunch_obj = factories.create_lunch(NAME, menu_objs, [menu_soup]) return lunch_obj
def _parse(tag): current_day_tag = _get_current_day_tag(tag) soup_raw = _process_soup_string(current_day_tag.get_text()) meals_raw = _get_meals_raw(current_day_tag) menu_soups = [s.strip() for s in soup_raw.split('/')] menu_objs = _get_menu_objs(meals_raw) lunch_obj = factories.create_lunch(NAME, menu_objs, menu_soups) return lunch_obj