A Python library to download financial data from Finviz, including stock screeners, quotes, news, insider trades, and ETF holders. Current version 1.3.0, requires Python >=3.9. Released under MIT license with moderate release cadence (major updates every few months).
pip install finvizfinanceVerified import paths — ran on the pinned version, not inferred.
Fetches outer rating (broker ratings) for a stock ticker. No API key required.
Check return types: use `type(result)` and adjust code to handle dicts or use `pd.DataFrame(result)` if pandas needed.
Use proxies, add delays between requests, and avoid scraping at high frequency. Consider rotating user agents.
Always check if the result is non-empty before indexing. Handle empty results gracefully.
Use `ticker_outer_rating` instead of `outer_rating`.