add scraping the torrent topics rss files
This commit is contained in:
22
cmd/main.go
22
cmd/main.go
@@ -1,28 +1,16 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
_ "github.com/go-sql-driver/mysql"
|
||||
|
||||
"github.com/joho/godotenv"
|
||||
scraper "git.amok.space/yevhen/resource-scraper/internal"
|
||||
)
|
||||
|
||||
// init is invoked before main()
|
||||
func init() {
|
||||
// loads values from .env into the system
|
||||
if err := godotenv.Load(); err != nil {
|
||||
log.Print("No .env file found")
|
||||
}
|
||||
scraper.ParseFlags()
|
||||
}
|
||||
|
||||
func main() {
|
||||
// Get the GREETING environment variable
|
||||
greeting, exists := os.LookupEnv("GREETING")
|
||||
|
||||
if exists {
|
||||
fmt.Println(greeting)
|
||||
}
|
||||
|
||||
fmt.Println("fin")
|
||||
scraper.Bootstrap()
|
||||
//fmt.Printf("%v\n", viper.Get("23").([]interface{}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user