scraper done; scrapes to local sqlite db
This commit is contained in:
parent
448552016b
commit
bde13e9b68
18 changed files with 1585 additions and 164 deletions
14
config.go
Normal file
14
config.go
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
package main
|
||||
|
||||
// Forge is a single forge instance to scrape.
|
||||
type Forge struct {
|
||||
Name string `yaml:"name"`
|
||||
Url string `yaml:"url"`
|
||||
Type string `yaml:"type"`
|
||||
}
|
||||
|
||||
// Config is the top-level configuration file.
|
||||
type Config struct {
|
||||
DbPath string `yaml:"db_path"`
|
||||
Forges []Forge `yaml:"forges"`
|
||||
}
|
||||
Loading…
Reference in a new issue