Skip to content

eugenius1/stock-scrape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimplyWall.St Scraper

GitHub Actions workflow status badge codecov

Scrapes some stock metrics from Simply Wall St..

TODO:

  • Values are currently not successfully parsed. SwsCyIds or the parsing logic needs to be updated.

Pre-requisites

Install dependencies

make install

Run

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,,,,

About

Scrape SimplyWall.St figures (quick project)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published