You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Same for me, seems like they've changed the CSS code and now the lessons_title = module_lesson.find_by_tag('h5') does not return lesson titles. However, you can circumvent that and extract lesson titles from the url, just modify the second for i, module_lesson in enumerate(module_lessons): loop, adding after the line lessons_u.append(lesson_url) these 3 lines:
title = lesson_url.split('/')[-1]
lessons_t.append(title)
lessons_i.append(lesson_id)
This populates lessons_t and lessons_i with what I think are appropriate values. The downloading part still doesn't work though (says there is no content to download), I am trying to understand why.
UPD: Ok, got it. The title this way doesn't contain "Lecture" or "Reading", so it doesn't get submitted to the downloading functions. (Actually in the course I am trying to download, the videos are marked with "Video" rather than "Lecture", so it wouldn't work anyway.) I modified it a bit to get the videos at least, but the function to download mp4 is not working also, because (I guess) it cannot find the approariate link to on the video page to download it. Not sure where to go from this point.
did not download any file. Goes till the course page but does not download anything after that
The text was updated successfully, but these errors were encountered: