Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lessons_i is empty #31

Open
TarunTater opened this issue Aug 21, 2018 · 1 comment
Open

lessons_i is empty #31

TarunTater opened this issue Aug 21, 2018 · 1 comment

Comments

@TarunTater
Copy link

did not download any file. Goes till the course page but does not download anything after that

@antopolskiy
Copy link

antopolskiy commented Sep 25, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@TarunTater @antopolskiy and others