Skip to content

c-wilkinson/basic-FPL-scrape-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

basic-FPL-scrape-scripts

This repository represents my interest in numbers, fantasy football and experimentation with languages I don't often use. I'll split the repository by language then by title. The whole thing is covered under a "do as you wish" license.

License: Unlicense

CodeFactor

Codacy Badge

PowerShell

PSFPLInfo

Badges

License: Unlicense PowerShell Gallery Downloads PowerShell Gallery Version Github Version

Unit Tests

Create Mini-League Chart For Work Mini-League AuthenticationTestsChartCreationTests

Information

PSFPLInfo PowerShell Package Gallery.

This is a PowerShell module that scrapes the FPL website and generates objects that you can use. Usage is simple:

Install-Module -Name PSFPLInfo -Force; 
Import-Module -Name PSFPLInfo -Force; 

$session = Authenticate {your login e-mail} {your login password};
$league = Get-League {your mini league ID} $session;
$chart = Chart $league;

The three objects generated there are an FPL websession (used to allow you to scrap your mini-league data), a mini-league object (consisting of Manager, TeamName, TeamId, TeamValue and an array of GameWeekHistory) and a chart object. The chart object can be saved by calling:

$chart.SaveImage("somePath\someFile.png", "PNG");

This generates a line graph of the history of your mini-league rankings.

Python

PYFPLInfo

To come.

About

Some basic scripts to generate FPL statistics and analysis for FPL and number geeks

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •