I created this to allow myself to scrape Fantasy Premier League data into a Postgresql database. It scrapes the following data:
- Player Overview Data
- Gameweek data
- Player history data
- Personal League data
Use the following steps below:
- Create a Postgresql Database.
- Edit the config.xml file found in FantasyPL\bin\Release\Config
- with the correct connection string to connect to your db
- with the league that you want data for (limited to 1 at this point)
- Open your Postgres Database and run the script called CreateTables.sql to create the SQL tables
- Lastly, run FantasyScraper and the data will be populated in your database.