def get_sections(curriculum_code):
r = requests.get(BASE_URL.format(curriculum_code))
r.raise_for_status()
tree = parse_html(BytesIO(r.content))
return list(map(build_section,
tree.xpath(TABLES_XPATH)[RELEVANT_SECTIONS]))
评论列表
文章目录