Closed windwild closed 11 years ago
Also has an error:
Downloading sna-002 to coursera/sna-002 for kpa23.root@gmail.com
Getting downloads list...
Logging in...
Traceback (most recent call last):
File "coursera.py", line 222, in <module>
main()
File "coursera.py", line 218, in main
c.downloadContents()
File "coursera.py", line 96, in downloadContents
data = self.getDownloadData()
File "coursera.py", line 69, in getDownloadData
self.login()
File "coursera.py", line 42, in login
raise Exception("Could not open login url: "+e.reason)
TypeError: cannot concatenate 'str' and 'error' objects
Need help to solve it! Thank you.
I have the same error ....as windwild ......need helppp
Hi windwild, kpa23, gadalaavinash
Sorry for replying this late. I'm currently not able to look into this, though it should be a simple fix. Meanwhile you can try out others scripts: https://www.google.com/search?q=download+coursera+videos&ie=utf-8.
Thanks for using this small project. Sorry for not being able to help out immediately.
Hi there, I finally got the opportunity to fix this. The latest code should work now. Cheers!
➜ coursera-downloader-master python coursera.py sna-002
Downloading sna-002 to ~/coursera/sna-002 for gjywindwild@gmail.com Getting downloads list... Logging in... Submitting form... Traceback (most recent call last): File "coursera.py", line 222, in
main()
File "coursera.py", line 218, in main
c.downloadContents()
File "coursera.py", line 96, in downloadContents
data = self.getDownloadData()
File "coursera.py", line 69, in getDownloadData
self.login()
File "coursera.py", line 52, in login
raise Exception("Could not submit login form: "+e.reason)
AttributeError: 'HTTPError' object has no attribute 'reason'
And then I printed out e.code. e.code == 403
Is there any ways to solve this problem? Thank you very much for your work.