Skip to content
This repository has been archived by the owner on Aug 1, 2021. It is now read-only.

Connection error #44

Closed
davidonlaptop opened this issue Dec 11, 2017 · 4 comments
Closed

Connection error #44

davidonlaptop opened this issue Dec 11, 2017 · 4 comments

Comments

@davidonlaptop
Copy link

I indeed have access to the internet...

sudo python udemy-dl.py -u my@email.com -p thepassword https://www.udemy.com/capital-market-immersion -l
[] : Downloading webpage..
[
] : Extracting course information..
[] : Downloading 'capital market immersion'.
[
] : Trying to login as (davidonlaptop@gmail.com)...
[-] : Connection error : make sure your internet connection is working.

@r0oth3x49
Copy link
Owner

@davidonlaptop you should see this Issue 16:Connection error
if you are on Mac or unix based machine you should upgrade requests package for Python2 and also install requests[security] to make it work its mention in README as well.

@davidonlaptop
Copy link
Author

I see... Getting a weird error when installing requests[security] :

OSError: [Errno 1] Operation not permitted: '/tmp/pip-e2gWWZ-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pyOpenSSL-0.13.1-py2.7.egg-info'

Does udemy-dl downloads the course attachments too (pdf, etc.) ?

@r0oth3x49
Copy link
Owner

yes it downloads the attachments etc and this error is cause by OS and particular to requests you can see if the patch here given works for you.

@davidonlaptop
Copy link
Author

yes it downloads the attachments etc
sweet!

The patch from the links didn't work but python3 did it:

sudo -H pip3 install requests[security]
sudo -H pip3 install -r requirements.txt
python3 -u email@gmail.com -p password https://www.udemy.com/capital-market-immersion -l

Thanks!

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

No branches or pull requests

2 participants