joshfraser / robinhood-to-csv

Python script to export Robinhood trades to a CSV file
MIT License
259 stars 109 forks source link

unable to get login using correct credentials #35

Closed matthewkooshad closed 5 years ago

matthewkooshad commented 6 years ago

i removed special characters from my password as i found noted in https://github.com/joshfraser/robinhood-to-csv/issues/5 -- even after doing that, i get the same error as before i changed my password:

Traceback (most recent call last): File "d:\app\robinhood-to-csv\csv-export.py", line 46, in logged_in = robinhood.login(username=username, password=password) File "d:\app\robinhood-to-csv\Robinhood.py", line 81, in login res = res.json() File "d:\dev\Python37\lib\site-packages\requests\models.py", line 897, in json return complexjson.loads(self.text, **kwargs) File "d:\dev\Python37\lib\json__init__.py", line 348, in loads return _default_decoder.decode(s) File "d:\dev\Python37\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "d:\dev\Python37\lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

abhikush commented 5 years ago

I was able to get it to work for my use after making changes in Robinhood.py.

If you have any other issues just refer https://github.com/Jamonek/Robinhood/blob/master/Robinhood/Robinhood.py and make changes in your Robinhood.py

abhikush commented 5 years ago

Couldn't get code in the 3 bullet to format correctly but just follow the format in existing code.

joshfraser commented 5 years ago

Merged the fix for this. Thanks for your patience folks.