Categorygithub.com/hill-daniel/finance-scraper
modulepackage
0.0.0-20220113153045-1666625d6356
Repository: https://github.com/hill-daniel/finance-scraper.git
Documentation: pkg.go.dev

# 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 -> ⭕

# Packages

No description provided by the author
No description provided by the author

# 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.

# Interfaces

Analyzer analyzes given quote and returns a result.
Scraper scrapes a data source.