def get_section_by_url(url,
                       include_instructor_not_on_time_schedule=True):
    """
    Returns a uw_sws.models.Section object
    for the passed section url.
    """
    if not course_url_pattern.match(url):
        raise InvalidSectionURL(url)

    return _json_to_section(
        get_resource(url),
        include_instructor_not_on_time_schedule=(
            include_instructor_not_on_time_schedule))