Categorygithub.com/taskmedia/nuScrape
module
1.1.7
Repository: https://github.com/taskmedia/nuscrape.git
Documentation: pkg.go.dev

# README

nuScrape

releases docs golang version
codecoverage code size
issues pull requests
twitter
Open in Gitpod

This application will generate a REST endpoint to fetch data from nuLiga. The service will parse the table of nuLiga to a JSON object.

Start application

You will be able to start the application directly with golang:

go run cmd/nuScrape/nuScrape.go

Another option would be running the application in a Docker container or deploy in Kubernetes via Helm:

docker run \
  --name nuscrape \
  -p 8080:8080 \
  taskmedia/nuscrape:latest

Example API call

To get a gesamtspielplan you can request following endpoint: http://localhost:8080/rest/v1/gesamtspielplan/2021_22/AV/281103

The response will be e.g.:

{
    "matches": [
        {
            "date": "2021-10-09T19:15:00+02:00",
            "team": {
                "home": "TV Memmingen",
                "guest": "TSV Ottobeuren III"
            },
            "goal": {
                "home": 28,
                "guest": 27
            },
            "location": 270222,
            "id": 27031301,
            "annotation": {
                "date": "",
                "result": ""
            },
            "report": 7013920,
            "referee": null
        },
        ...
    ],
    "season": "2021_22",
    "championship": "Alpenvorland",
    "group": 281103,
    "agecategory": {
        "Sex": "m",
        "Age": ""
    },
    "class": "Bezirksklasse",
    "relay": {
        "Name": "Nord-West",
        "Id": 0
    }
}

# Packages

No description provided by the author
No description provided by the author