Commit 0c36fe63 authored by Robin Sonnabend's avatar Robin Sonnabend

Update for new moodle layout

parent c630d5c9
......@@ -20,7 +20,7 @@ def query_courses(session):
course_list = soup.find("div", id="coc-courselist")
courses = course_list.find_all("div", class_="coc-course")
course_anchors = [
course.find("a", href=True)
course.find("h3").find("a", href=True)
for course in courses
course_links = {
......@@ -115,7 +115,7 @@ def main():
course_links = query_courses(session)
for course_name, course_link in course_links.items():
print("Course:", course_name)
for path, link in query_documents(session, course_link):
print(path, link)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment