Parses graphs and other data from camelcamelcamel.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

25 lines
444 B

package main
import (
"fmt"
"time"
)
func main() {
maxPrice, minPrice := 59.99, 9.99
startDate, endDate := time.Date(2015, 10, 29, 0, 0, 0, 0, time.Local), time.Date(2019, 05, 15, 0, 0, 0, 0, time.Local)
img, err := loadPNG("graph.png")
if err != nil {
panic(err)
}
parsed, err := ParseGraph(img, maxPrice, minPrice, startDate, endDate)
if err != nil {
panic(err)
}
for _, p := range parsed {
fmt.Println(p.String())
}
}