jgillick / LendingClubAutoInvestor

A simple command line tool that will automatically invest all cash that becomes available
MIT License
47 stars 21 forks source link

Save Login info #7

Closed TobyDai closed 11 years ago

TobyDai commented 11 years ago

Is there anyway I can edit the code to save all my login info, so it will log in automatically as soon as I run it? Security is not an issue.

Thank You!

this is my first time touching python, so I'm still trying to understand how everything works...

ghost commented 11 years ago

That's a good idea. I think I'll add some options to the command line for username, password and investing settings.

jgillick commented 11 years ago

I've just pushed a new update that should handle this for you. Instead of saving the password, you can pass it on the command line. You can also pass a JSON config which will bypass all the prompts. Read the new section of the README to see how this works. You can then wrap that command in a batch file or something, if you want.

I'm considering this a beta release (1.5b) and haven't updated the pip distribution yet. So install it straight from the github sources and let me know if it works for you.

I decided against saving the password to file because I'm afraid of any edge cases that might save it to file accidentally for users who don't want it to.

On a side note, I've started a new repo where I'm extracting the LendingClub API to a standalone module that can be used in other projects. This will make it much more logical and easy to follow.

Cheers.