Skip to content

lantosgyuri/SoccerStatScraperServer

Repository files navigation

SoccerStatScraperServer

This is a simple server for scraping soccerstats.com. The data will be saved in a SQL database and exposed through REST endpoints.

Run

Run the docker-compose file, and spin up the server.

API routes

POST api/v1/games/filter

You can filter games by the statistics. The API will search for games where the params are bigger as the params set in the body.

Body:

"home" : {
  "avg_goals_for": "0.4",
	"clean_sheets": "0.2",
},
"away": {
	"avg_goals_against": "1",
	"failed_to_score": "0.3",
}

GET api/v1/stat/team/:teamID/:state

State must be "home" or "away". Returns the team statistic of a team, based on Home or Away games.

GET api/v1/stat/available-field

Returns all of the available fields which you can use in the api/v1/games/filter route.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published