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

Password complexity issue #50

Closed
vkaracic opened this issue Jan 30, 2013 · 3 comments
Closed

Password complexity issue #50

vkaracic opened this issue Jan 30, 2013 · 3 comments
Labels

Comments

@vkaracic
Copy link

When I first tried this script with the -u and -p args I get an error:

bash: !an < rest of the password >: event not found

When I tried with the .netrc file I get a bad cookie or wrong credentials error, even though they were right. This is when I wanted to post the issue but I went through the code and found these lines:

if args.username and not args.password and not args.netrc:
  args.password = getpass.getpass("Coursera password for %s: " % args.username)

so I just entered my username via -u and the name of the class without my password, I got the prompt for the password, after entering it the download started normally. So I guess there is a problem with parsing the complex passwords - I'm not much of a coder so I'm not sure what exactly is an issue, hopefully you guys will know and improve this script!

Good script, it's a life savior! Cheers! :)

@rbrito
Copy link
Member

rbrito commented Jan 31, 2013

Hi.

On Wed, Jan 30, 2013 at 10:53 AM, vkaracic notifications@github.com wrote:

When I first tried this script with the -u and -p args I get an error:

bash: !an: event not found

It's not clear here if you were trying to use bash's history functions
(a ! immediately followed by some characters to repeat a previous
command containing those characters) or if your password actually has
an exclamation character.

I suspect, from your message, that the second case applies here, in
which case you have to escape the exclamation.

Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFCAAAA
http://rb.doesntexist.org/blog : Projects : https://github.com/rbrito/
DebianQA: http://qa.debian.org/developer.php?login=rbrito%40ime.usp.br

@vkaracic
Copy link
Author

Yes, you are correct. I tried using single quotes in the ./netrc file but it doesn't work. Using it in-line via -u and -p did the trick!

@vkaracic vkaracic closed this as completed Feb 5, 2013
@mrb1778
Copy link

mrb1778 commented Mar 5, 2018

I did not get the quoting to work or the .netrc, but i did get the conf file to work
coursera-dl.conf

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

No branches or pull requests

3 participants