Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when trying to log in. #27

Open
Bulmenisaurus opened this issue Aug 21, 2020 · 6 comments
Open

Error when trying to log in. #27

Bulmenisaurus opened this issue Aug 21, 2020 · 6 comments

Comments

@Bulmenisaurus
Copy link

I was trying to use this api, but encountered problems upon logging in. Here is the full error:

Traceback (most recent call last):
  File "/Users/meow/programming/PycharmProjects/testing/Investopedia trading.py", line 7, in <module>
    client = ita.Account(account_info[0], account_info[1])
  File "/Users/meow/Maths100%/venv/lib/python3.8/site-packages/InvestopediaApi/ita.py", line 40, in __init__
    login_form = login_page.soup.select("form#account-api-form")[0]
IndexError: list index out of range

account_info[0] and account_info[1] is the login information. Seeing how old the commits are, I'll probably look for a more active API.

@glotchimo
Copy link

My guess is that the ID has changed for whatever that element is on the Investopedia site so BeautifulSoup isn't able to grab it since it's hard-coded with a potentially stale value. I'd investigate that first if I were you, could be a quick and easy PR

@Bulmenisaurus
Copy link
Author

Ok, I think i fixed the problem, but I don't have the slightest clue on how to test the module locally. :(

@VenomStyx
Copy link

Also experiencing this issue :/

@MrQui2
Copy link

MrQui2 commented Apr 24, 2021

I have the same issue as Bulmenisaurus. Nothing worked. How can I fix it. I have Python 3.9

@SoggyWaffle27
Copy link

Has anyone solved this yet?

@Bulmenisaurus
Copy link
Author

@SoggyWaffle27 try applying the changes in #28.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants