coursera-dl / edx-dl

A simple tool to download video lectures from edx.org (and other openedx sites)
GNU Lesser General Public License v3.0
1.93k stars 640 forks source link

Implement storing user/passwors via netrc #42

Open rbrito opened 11 years ago

rbrito commented 11 years ago

Like I already do with coursera-dl, it would be super hand, as we are trying to support many sites, to store the user credentials in only one standard place (e.g., in ~/.netrc), as I really have a hard time remembering my own passwords.

shk3 commented 11 years ago

Sounds nice. Will netrc work on Windows?

rbrito commented 11 years ago

Hi, George,

I honestly don't know, but I have many users from my coursera-dl project that use Windows and have contributed patches to use netrc, as (apparently) the location of the file is not standard, as on Unix OSes.

That being said, typing the passwords on scripts or whatever just to have the lectures downloaded automatically (in my case, via cron jobs) just feels like the wrong way to go and the netrc solution, while certainly not perfect (it is a plaintext file, after all, only controlled by the usual permissions of the operating system), is a step in the right direction.

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

shk3 commented 11 years ago

Hi Rogerio,

I agree with you. I am sort of busy these days. I will try to implement it on weekend.

Thanks for your idea.

George

On Thu, Oct 17, 2013 at 9:43 PM, Rogério Brito notifications@github.comwrote:

Hi, George,

I honestly don't know, but I have many users from my coursera-dl project that use Windows and have contributed patches to use netrc, as (apparently) the location of the file is not standard, as on Unix OSes.

That being said, typing the passwords on scripts or whatever just to have the lectures downloaded automatically (in my case, via cron jobs) just feels like the wrong way to go and the netrc solution, while certainly not perfect (it is a plaintext file, after all, only controlled by the usual permissions of the operating system), is a step in the right direction.

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

— Reply to this email directly or view it on GitHubhttps://github.com/shk3/edx-downloader/issues/42#issuecomment-26566955 .

http://www.MonkeyHouse.info http://www.monkeyhouse.info/

balta2ar commented 9 years ago

@shk3 Did you manage to implement it?

shk3 commented 9 years ago

@balta2ar Honestly, I didn't. :-/ The code base has been changed dramatically, and I actually need some time to get familiar with it.