Scrapes some stock metrics from Simply Wall St..
TODO:
- Values are currently not successfully parsed.
SwsCyIds
or the parsing logic needs to be updated.
make install
pipenv run python main.py --help
Usage:
usage: main.py [-h] [--tickers TICKERS] [--output OUTPUT]
options:
-h, --help show this help message and exit
--tickers TICKERS, -t TICKERS
Headerless CSV with tickers and optionally the SimplyWall.St URL
--output OUTPUT, -o OUTPUT
Output CSV for results
For example, an input CSV file with tickers and optional SWS URL (it will be searched if empty):
AAPL,
GOOG,https://simplywall.st/stocks/us/media/nasdaq-googl/alphabet
Output after running pipenv run python main.py -t in.csv -o out.csv
:
Ticker,SimplyWall.St URL,Name,Forecasted earnings growth,Forecasted revenue growth,Debt to equity ratio,Operating Cash Flow to Debt
AAPL,https://simplywall.st/stocks/us/tech/nasdaq-aapl/apple,Apple,,,,
GOOG,https://simplywall.st/stocks/us/media/nasdaq-googl/alphabet,Alphabet,,,,