Skip to content

niesfutbol/sofa_score_data

Repository files navigation

Sofascore and Fotmob scraper

codecov

Step to use

id of different leagues

  • Champions League = 42
  • Premier League = 47
  • Ligue 1 = 53
  • Bundesliga = 54
  • Serie A = 55
  • Eredivisie = 57
  • Primeira Liga = 61
  • Europa League = 73
  • LaLiga = 87
  • Liga MX = 230
  • Bélgica = 40
  • Escocia = 64
  • Austria = 38
  • Copa América = 44
  • Eurocopa = 50
league = {"copa_america": 44, "eurocopa": 50, "bundesliga" = 54}

Para la inclinación

  1. python src/example_fotmob.py
  2. python src/write_general_league_match_info.py
  3. python src/write_table_of_league.py
  4. Rscript src/split_matches_table.R
  5. Rscript src/split_table.R
  6. Rscript src/momentum_teams.R, needs comprehenr
  7. Rscript src/plot_momentum_distribution.R, needs ggridges