getstocks

command module
v0.0.0-...-f3ae9c8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2017 License: MIT Imports: 3 Imported by: 0

README

getstocks

retrieve stocks quotes from web sites

getstocks/run

type definitions

Tipi da modificare in funzione degli scopi

  • ScraperKey: string
  • JobKey: string
  • Result: {price:float32, date:time.Time}

Tipi indipendenti dallo scopo particolare

  • ParseDocFunc: func(doc *goquery.Document) (*Result, error)
  • Scrapers: map[key: ScraperKey] struct { workers: int, fn ParseDocFunc}
  • Jobs: map[key: JobId] []*JobReplica
  • JobReplica: struct{scraper: ScraperId, url: string}
func Execute

checks args:

  • Jobs:

    • *JobReplica != nil
    • scraper deve corrispondere ad uno degli scrapers
    • len(JobReplica) >= 1
  • Scrapers:

    • workers > 0
    • fn not nil

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package cli provides a CLI UI for the getstocks command line tool.
Package cli provides a CLI UI for the getstocks command line tool.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL