Go library for downloading Football Bet Data exports programmatically.
- Go 1.22+
- A valid Football Bet Data account
Install:
go get github.com/LonecastSystems/fbd-goImport the package:
import fbd "github.com/LonecastSystems/fbd-go"Basic flow (with os imported):
client, err := fbd.NewClient()
if err != nil {
// handle error
}
if err := client.SignIn(username, password); err != nil {
// handle error
}
defer client.SignOut()
dashboardBytes, err := client.NewDashboardConfigBuilder().
WithMatchesNoPrediction().
WithLeagues(map[fbd.Country][]string{fbd.ENGLAND: {"1", "2"}}).
WithSummerSeasons([]int{2025}).
WithWinterSeasons([]int{2025}).
Build().
ExportToExcel()
if err != nil {
// handle error
}
if err := os.WriteFile("dashboard.xlsx", dashboardBytes, 0644); err != nil {
// handle error
}- Keep credentials out of source code. Read them from environment variables or your secrets manager.