bramton / degiro

Very basic unofficial Python API for DeGiro
BSD 3-Clause "New" or "Revised" License
52 stars 16 forks source link

2fa and command line login without config file #8

Closed FelixBenning closed 4 years ago

FelixBenning commented 4 years ago

Maybe you would want the if name='main' bit removed. But I thought I would just leave it in there as anyone wanting to test it would probably just reinclude it anyway, and it is not going to do harm.

The 2fa implementation is basically a copy of the pladaria js implementation. The command line login is pretty self explanatory.

bramton commented 4 years ago

Thanks Felix ! Nice trick with the __name__ == '__main__':, I learned something new today 👍

FelixBenning commented 4 years ago

You are welcome! Thanks for helping to teach me http requests. :-)