command
module
Version:
v0.0.0-...-f3ae9c8
Opens a new window with list of versions in this module.
Published: Feb 5, 2017
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
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:
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Package cli provides a CLI UI for the getstocks command line tool.
|
Package cli provides a CLI UI for the getstocks command line tool. |
|
|
|
|
Click to show internal directories.
Click to hide internal directories.