# README
Yahoo Finance HTML Scraper
Scrape data for stock symbol and analyze result.
Usage
go build cmd/finance-scraper/finance-scraper.go
./finance-scraper -analyzer=asana -symbol=NCNO
- symbol beeing stock symbol and asana is the only analzyer supported right now
example output:
PE Ratio 0.00 -> ⭕
Enterprise Value 6.28 B < Market Cap 6.50 B -> ✅
Return on Equity -13.74 -> ⭕
Insider Ownership 2.17 -> ⭕
# Functions
CreateAnalyzer returns an Analyzer for given string.
FmtWithSuffix format big numbers to the following: Thousand, 1 000 -> 1 k Million, 1 000 000 -> 1 M Billion, 1 000 000 000 -> 1 B Trillion, 1 000 000 000 000 -> 1 T.
# Structs
AsanaAnalyzer analyses quotes and returns the result in copy paste friendly asana ticket format.
DefaultAnalyzer just prints given quote.
Quote is the mapped result of ScrapeResult, for calculation purposes.
ScrapeResult holds the result data from a scraping run.
YahooMapper maps ScrapeResult, if its source is also Yahoo finance, to a quote.