Get Company Profile #78
Unanswered
davide-legolas
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all!
Using investpy, i built a scraping routine that basically consisted in:
get stock list (whole stocks tickers) :
stock_list = investpy.stocks.get_stocks(country=None)
define a list of countries i am interested in, and then filter the stocks that belongs to those countries, i.e.:
country_list = ['canada','austria','united states']
stock_filtered = stock_list[stock_list['country'].isin(country_list)]
get a ticker list of the stocks of the countries i have selected:
symbol_list = stock_filtered["symbol"].to_list()
To this point, investpy still works fine. Issues starts at the next task:
industry = investpy.stocks.get_stock_company_profile(symbol, country=country,language='english')['industry']
sector = investpy.stocks.get_stock_company_profile(symbol, country=country,language='english')['sector']
Point 4 does not work anymore, maybe for the API changes of investing.com.
Anyone found a workaround to get those info? Is it possible to get those with investiny?
Thank You very much ;)
Davide
Beta Was this translation helpful? Give feedback.
All reactions