add scraping the torrent topics rss files

This commit is contained in:
2024-09-09 08:54:29 +03:00
parent 20c4f25c55
commit e587e645fc
26 changed files with 714 additions and 22 deletions

View File

@@ -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{}))
}