dgorissen / coursera-dl

A script for downloading course material (video's, pdfs, quizzes, etc) from coursera.org
http://dirkgorissen.com/2012/09/07/coursera-dl-a-coursera-download-script/
GNU General Public License v3.0
1.74k stars 300 forks source link

Crash during download & skipped videoes #47

Closed AllanLRH closed 11 years ago

AllanLRH commented 11 years ago

Just got this error:

* Collecting downloadable content from https://class.coursera.org/posa-001/lecture/index
Traceback (most recent call last):
  File "/Users/allan/Dropbox/Crap/inst/coursera-dl/courseradownloader/courseradownloader.py", line 545, in <module>
    main()
  File "/Users/allan/Dropbox/Crap/inst/coursera-dl/courseradownloader/courseradownloader.py", line 542, in main
    d.download_course(cn,dest_dir=args.dest_dir,reverse_sections=args.reverse)
  File "/Users/allan/Dropbox/Crap/inst/coursera-dl/courseradownloader/courseradownloader.py", line 295, in download_course
    (weeklyTopics, allClasses) = self.get_downloadable_content(course_url)
  File "/Users/allan/Dropbox/Crap/inst/coursera-dl/courseradownloader/courseradownloader.py", line 207, in get_downloadable_content
    bb = BeautifulSoup(p,self.parser)
NameError: global name 'p' is not defined

The error seem specific to this course (Pattern-Oriented Software Architectures for Concurrent and Networked Software), as two other did not crash.

I think all course material is available, judging from the course dashboard: image

Also, for some reason, not all the available material was downloaded from the course datasci-001 (Introduction to Data Science). The script just went on to the next, guitar-001, (Introduction to Guitar), where one video were skipped.

Albeit I have no real knowledge about how this script works, I have an idea that the problem is fetching the downloadable content, as several videos were downloaded without problems.

AllanLRH commented 11 years ago

Newer mind. Hadn't updated to the newest version (I'm a git noob) as I thought I did. Works now :flushed: