Skip to content

Conversation

@matze298
Copy link

@matze298 matze298 commented Feb 10, 2021

Scraping now is as easy as:

  from fbref_scraper import FbRefScraper
  scraper = FbRefScraper(leagues=["Premier League"], seasons=[2019])
  df_outfield = scraper.scrape_players(csv_path="outfield.csv")
  df_teams = scraper.scrape_teams(include_vs=False)
  df_gks = scraper.scrape_goalkeepers()

Disclaimer: I did not (yet) merge multiple seasons of players. Each season will be a separate entity in the players dataframe.

Scraping now is as easy as:
  scraper = FbRefScraper(leagues=["Premier League"], seasons=[2019])
  df_outfield = scraper.scrape_players(csv_path="outfield.csv")
  df_teams = scraper.scrape_teams(include_vs=False)
  df_gks = scraper.scrape_goalkeepers()
@matze298
Copy link
Author

Just noticed that season scraping doesn't work correctly (since part of the link is missing). Will fix this weekend and push an update.

@matze298
Copy link
Author

Season scraping fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant