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

get_stock_financial_summary gives ValueError #201

Closed
Swopper050 opened this issue Aug 9, 2020 · 3 comments
Closed

get_stock_financial_summary gives ValueError #201

Swopper050 opened this issue Aug 9, 2020 · 3 comments
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@Swopper050
Copy link

Hi, thanks for the package, it is awesome!

I was trying to retrieve the financial summary of "TSLA" in "united states", but this yielded a ValueError. As far as I can tell, it tries to make an int from a float string (I'm using investpy 1.0):

Screenshot 2020-08-09 at 19 34 42

@MatthieuH5565
Copy link

MatthieuH5565 commented Aug 12, 2020

EDIT: I fixed it by using the dev build of investpy " pip install git+https://github.com/alvarobartt/investpy.git@developer"

Does anyone have a fix for this?
I get this error " module 'investpy' has no attribute 'get_stock_financial_summary'"

code is "data = investpy.get_stock_financial_summary(stock='AAPL', country='United States', summary_type='income_statement', period='annual')"

@alvarobartt alvarobartt self-assigned this Aug 13, 2020
@alvarobartt alvarobartt added bug Something isn't working question Further information is requested labels Aug 13, 2020
@shigerufw
Copy link

into your folder that you installed investpy

change this =>data[curr_row].append(int(row.text_content().strip()))

into this => data[curr_row].append(float(row.text_content().strip()))

@alvarobartt
Copy link
Owner

Hi @Swopper050, @MatthieuH5565 and @shigerufw, thank you for reporting this issue!

This was already solved in #205, in order to update investpy from source please use the following command:

pip install git+https://github.com/alvarobartt/investpy.git@master

Remember to star the repo, follow me here and on Twitter at https://twitter.com/alvarobartt so as to get notified from all the updates and projects I'm working on! ⭐ :octocat:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants