Skip to content

Commit

Permalink
removed redundant file and removed requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
briansrls committed Oct 29, 2018
1 parent 28b686f commit 78dca95
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 88 deletions.
16 changes: 5 additions & 11 deletions Robinhood/Robinhood.py
Expand Up @@ -15,7 +15,6 @@
import requests
import six
import dateutil
import urllib

#Application-specific imports
from . import exceptions as RH_exception
Expand Down Expand Up @@ -89,8 +88,7 @@ def login_prompt(self): # pragma: no cover

def login(self,
username,
password,
mfa_code=None):
password):
"""Save and test login info for Robinhood accounts
Args:
Expand All @@ -109,23 +107,19 @@ def login(self,
'scope': 'internal',
'username': username,
}
try:
data = urllib.urlencode(fields) #py2
except:
data = fields
data = fields

res = self.session.post(endpoints.login(), data=data)
res = res.json()

if 'mfa_required' in res:
try:
self.mfa_code = raw_input("MFA code: ").strip()
fields['mfa_code'] = self.mfa_code
data = urllib.urlencode(fields)
except:
self.mfa_code = input("MFA code: ").strip()
fields['mfa_code'] = self.mfa_code
data = fields

fields['mfa_code'] = self.mfa_code
data = fields

res = self.session.post(endpoints.login(), data=data)
res = res.json()
Expand Down
74 changes: 0 additions & 74 deletions Robinhood/trade_history_downloader.py

This file was deleted.

3 changes: 0 additions & 3 deletions requirements.txt

This file was deleted.

0 comments on commit 78dca95

Please sign in to comment.