To see less ads Register or Login ----- Daily Fantasy Sports games 18+

Side-game data project / FPL data collection

A Forum for all Fantasy PremierLeague.com (FPL) Links, Mini-Leagues and Side Games (i.e. inter-FISO competitions run by FISO users)
Post Reply
User avatar
RomynPG
Dumbledore
Posts: 9653
Joined: 13 Oct 2005, 18:32
FS Record: FPL 134 overall 06/07 ... never close since

Re: Side-game data project / FPL data collection

Post by RomynPG »

Mav3rick wrote: 18 Mar 2021, 17:05 Bear with me if you can while I sort it out, although if you side game runners have any alternate ways of scraping the data and/or have no further need for my site, now would be a good time to let me know :lol: :lol:
I do still use it for 5AS but don't fork out for me if you aren't using the data yourself.

I've been wanting to move 5AS off Excel( :roll:) and set it up online for years so maybe now is the time if you're on a LAMP setup and want someone to help share the cost. I have a few other ideas I've been wanting to explore so pm me if you get time and are interested in chat.

User avatar
Mav3rick
FISO Jedi Knight
Posts: 20858
Joined: 20 Jul 2009, 20:35
FS Record: FPL: 1082, 1201, 1800, 10203

The stats are dark and full of errors.

Re: Side-game data project / FPL data collection

Post by Mav3rick »

Cheers RomynPG, unfortunately all my code is .NET though!

I've been looking at keenly priced hosting options, the best of them seems to be a basic package with winity for about $9 a month (or $7 per month if I pay for a year up front). That would give me a UK based virtual server again (that I could do other things with too), so is probably the front runner for now.

I'll see what other replies we get here though before I sign up and move things over.

bspittles
Dumbledore
Posts: 7607
Joined: 13 Oct 2005, 18:26
Location: In hiding

Re: Side-game data project / FPL data collection

Post by bspittles »

I use tmdhosting.com for my (low traffic) website, costs $3 per month. I know you can scale it up if you need something above the basic package.

User avatar
Oxford NZ
Dumbledore
Posts: 6982
Joined: 06 Jan 2017, 03:35
FS Record: They think it's all over!

Re: Side-game data project / FPL data collection

Post by Oxford NZ »

Currently using a script to generate the grid written by Talkie Toaster for the divisional championships and the FISO cup. Still using your site as a back up as the grids are close to being the same. Many thanks Mav and TT :)

User avatar
andybarrell
Dumbledore
Posts: 9003
Joined: 13 Oct 2005, 18:26
Location: Southend-on-Sea
FS Record: 2013 Licence to Kill Winner
2019 S15 R2 Championship Winner
2020 FISO H2H League 1 Winner
2020 5aSide Champions (Falcons)
Contact:

Re: Side-game data project / FPL data collection

Post by andybarrell »

I use it for my Fiso Mirror but don't pay out on my behalf as this is possibly the last season i will run this sidegame

I am not savvy enough to get the data any other way , except clicking on every members team history and adding the data manually.....i don't have the time or inclination to do that though

User avatar
Brightwater
Grumpy Old Man
Posts: 2811
Joined: 01 Dec 2005, 22:15
Location: ***** BrightwaterVilla.co.uk ***** lakeside at Lake Berkley Orlando /parkrunning
FS Record: 21 cash league wins. CYKI 08/09 4th, 09/10 8th. 12/13 Sky 56th, FPL FISO X League winner. 2014 UFPL Beta 7th.
Contact:

Re: Side-game data project / FPL data collection

Post by Brightwater »

My 2 cents worth, if you are looking for a web host 1&1 / ionos.co.uk have hosted my villa website trouble free and reliable for 12 years. Negotiable pricing, mine was increased last year, knocked down to £3 per month including VAT.

User avatar
Smurphy Paw
FISO Knight
Posts: 14700
Joined: 17 Aug 2006, 17:48
FS Record: Mediocre, apparently
13/14: FPL 1792; FIFA 14 Top 700.
17/18: FPL 696th; loads of mini-League wins and side game promotions
18/19 1FC Köln 5AS Champions
#1 Spring Super League regular season 19/20 & 20/21

Re: Side-game data project / FPL data collection

Post by Smurphy Paw »

andybarrell wrote: 19 Mar 2021, 11:11 I use it for my Fiso Mirror but don't pay out on my behalf as this is possibly the last season i will run this sidegame
Possibly the wrong thread for discussion but I’d be very sorry if that is the case. It’s a great game

User avatar
Mav3rick
FISO Jedi Knight
Posts: 20858
Joined: 20 Jul 2009, 20:35
FS Record: FPL: 1082, 1201, 1800, 10203

The stats are dark and full of errors.

Re: Side-game data project / FPL data collection

Post by Mav3rick »

Thanks for the hosting ideas, I was using a £2 a month host this last year - they just didn't like the CPU usage :lol: I can get it hosted for a reasonable cost to the end of the season at least though, the plan is to get the site back up over the weekend.
Oxford NZ wrote: 19 Mar 2021, 06:18 Currently using a script to generate the grid written by Talkie Toaster for the divisional championships and the FISO cup. Still using your site as a back up as the grids are close to being the same. Many thanks Mav and TT :)
Is this script something that is or can be widely used by side game runners? I don't want to leave people without a solution as the side games are a vital part of FISO.

User avatar
Mav3rick
FISO Jedi Knight
Posts: 20858
Joined: 20 Jul 2009, 20:35
FS Record: FPL: 1082, 1201, 1800, 10203

The stats are dark and full of errors.

Re: Side-game data project / FPL data collection

Post by Mav3rick »

The site is back up and running now, eg.

https://www.emerald-solutions.co.uk/fiso

I've put enough in the meter to see the season through, and perhaps we can have a discussion in the close season about what's needed going forward.

User avatar
Oxford NZ
Dumbledore
Posts: 6982
Joined: 06 Jan 2017, 03:35
FS Record: They think it's all over!

Re: Side-game data project / FPL data collection

Post by Oxford NZ »

Many tanks Mav :) TT's script will work for others but I believe we will be kicked out from using the cors development site due to the usage.
Unfortunately I have no disposable income to fund side games as I am getting close to retirement and have spent my savings due to a recent illness, covid lock down and a down turn in the economy.

User avatar
Smurphy Paw
FISO Knight
Posts: 14700
Joined: 17 Aug 2006, 17:48
FS Record: Mediocre, apparently
13/14: FPL 1792; FIFA 14 Top 700.
17/18: FPL 696th; loads of mini-League wins and side game promotions
18/19 1FC Köln 5AS Champions
#1 Spring Super League regular season 19/20 & 20/21

Re: Side-game data project / FPL data collection

Post by Smurphy Paw »

Sponsor a month? There are enough of us on here who love the side games you guys run. I suspect it’d have to be voluntary - I’ll not name names but a couple of years ago had an interesting exchange with an overseas poster about the relative cost of accessing the likes of FFScout depending where you are in the world. And a fair proportion can probably relate to points you make ONZ. The sums you’re talking about are modest enough for the crowd to cover though, I would have thought?

User avatar
Mav3rick
FISO Jedi Knight
Posts: 20858
Joined: 20 Jul 2009, 20:35
FS Record: FPL: 1082, 1201, 1800, 10203

The stats are dark and full of errors.

Re: Side-game data project / FPL data collection

Post by Mav3rick »

Thanks SP, although given that we're now back on a proper virtual server (its always useful having a web server hanging around to chuck stuff on or experiment with), I'm ok with the relatively small increase in hosting costs.

I suppose what I'd like to explore more at the close season is if there are any other ways people have found or settled into to run their side games that make the site redundant now. It's coming up on five years running now :shock: , and is low but not zero maintenance for me - especially so if FPL towers make any significant API changes. Perhaps we can do something with TT's scripts hosted on a cloud platform (if they are partly running via Heroku this might be an option).

User avatar
Smurphy Paw
FISO Knight
Posts: 14700
Joined: 17 Aug 2006, 17:48
FS Record: Mediocre, apparently
13/14: FPL 1792; FIFA 14 Top 700.
17/18: FPL 696th; loads of mini-League wins and side game promotions
18/19 1FC Köln 5AS Champions
#1 Spring Super League regular season 19/20 & 20/21

Re: Side-game data project / FPL data collection

Post by Smurphy Paw »

No worries
Good to hear from you, hope you’re well

User avatar
Talkie Toaster
Grumpy Old Man
Posts: 4432
Joined: 11 Jul 2017, 15:43

Re: Side-game data project / FPL data collection

Post by Talkie Toaster »

Mav3rick wrote: 20 Mar 2021, 00:00 The site is back up and running now, eg.

https://www.emerald-solutions.co.uk/fiso

I've put enough in the meter to see the season through, and perhaps we can have a discussion in the close season about what's needed going forward.
Many thanks Mav. It's much appreciated. :D

User avatar
Oxford NZ
Dumbledore
Posts: 6982
Joined: 06 Jan 2017, 03:35
FS Record: They think it's all over!

Re: Side-game data project / FPL data collection

Post by Oxford NZ »

S17 Divisional champs registration

Just dropping this here for safe keeping ( succession planning in case I get hit by a bus/digger/ covid delete as applicable).
Divisional championship registration sheet updated with qualifying points and players sorted into the divisions they qualify for if / when they sign up.
Format is the same as MoSe used to run but Team of the Season points were changed by me last season to reward those coming up through the divisions.

I trust the grid will work in some form or another in the coming season and many thanks to Talkie Toaster and Mav3rick for the tools to do the job :)

User avatar
Mav3rick
FISO Jedi Knight
Posts: 20858
Joined: 20 Jul 2009, 20:35
FS Record: FPL: 1082, 1201, 1800, 10203

The stats are dark and full of errors.

Re: Side-game data project / FPL data collection

Post by Mav3rick »

The billing cycle for my site is up on the 19th June, and as mentioned I'm interested in having a bit of a discussion about what we want or need to do with it going forward.

If it's just a case of keeping the lights on, then I am ok with doing this. The hosting (with Winity.io) costs about $25 per quarter, which is a cost I can bear so financially there is no particular issue in keeping the site up.

What I am concerned about though is if and when FPL decide to change their API, as I have less time these days to spend on FPL and if there was a need for some substantial rework in the code, then that's where I'd start to be worried about being able to keep things running.

So my feeling is that if I just purely keep things running, that when FPL do change their API it will be a surprise, and a bit of an emergency, needing a fix in probably a time frame of a month or so. If I'm not able to assist, then side games may all of a sudden fail. I don't really want the sole responsibility of that so what I'm looking to do is establish a bit of redundancy.

I don't mind handing the code to FISO to re-brand and run as a FISO site, or I could give copies of the code to anyone who wants to volunteer to run something similar to my site going forward. It's .NET framework code, an MVC application specifically, so can run on any windows hosting provider, but as evidenced in this thread, some of the cheaper shared hosting sites might not like hosting it due to the network and CPU use when someone is requesting the grid data for a big league (it's all done on the fly so is quite HTTP request intensive).

I'm also happy to strip out the fundamental parts that make up the FISO grid, and publish that to github, or if TT's approach needs a server component I could potentially work that into the site and publish that to github instead of or as well as the grid. That would at least give others a chance to use (and host) the components as they see fit.

So, what do people prefer?

User avatar
Oxford NZ
Dumbledore
Posts: 6982
Joined: 06 Jan 2017, 03:35
FS Record: They think it's all over!

Re: Side-game data project / FPL data collection

Post by Oxford NZ »

Thanks Mav.
I use the TT script and your grid tool to generate the grid for the divisionals and the FISO cup. I have tried to understand how it all works so I could change or re write at if required but If the host boots us out then I am lost. I have run the game manually for a few weeks when we were booted out before and your grid tool was not working, but that took up a huge amount of time I do not have.
I will have to leave it up to TT and the other script / code writers to make comment and come up with a cunning plan.
Thanks again for all the work over the years and the offer of your site and tools. The side games are unique to FISO and should be saved if possible.

User avatar
RomynPG
Dumbledore
Posts: 9653
Joined: 13 Oct 2005, 18:32
FS Record: FPL 134 overall 06/07 ... never close since

Re: Side-game data project / FPL data collection

Post by RomynPG »

I did some work towards the end of the season on finally moving the H2H off Excel and on to the web. Got a ittle bit more to do on displaying the data and some final automation but I'm effectivity grabbing everything, fixtures, players etc, selected league level data and also detailed data for individual teams - and processing and caching it all. I tested it with the H2H leagues and the Rounded Keeper and hope to run the H2H with it next season, with LiveScore :shock: , and get some fun stats for the pub league. I ran this season H2H through and got the same results which is a good sign.

I should(?) be able to provide datasets if needed. My setup is LAMP with memcached.

User avatar
Mav3rick
FISO Jedi Knight
Posts: 20858
Joined: 20 Jul 2009, 20:35
FS Record: FPL: 1082, 1201, 1800, 10203

The stats are dark and full of errors.

Re: Side-game data project / FPL data collection

Post by Mav3rick »

That's great new RomynPG, having more than one source is really the key to ensuring we don't lose the sidegames at any point.

I just checked the original post in this thread and it's been 5 years now since FPL made their significant change. I don't really see any particular reason for the underlying API to change much, but they might move it to a new technology one year. The more people we have with the ability to recover the GRID when that happens the better!

ONZ - I think with TT's script he has issues mainly on actually accessing the APIs. Hopefully he can drop into the conversation later and explain the errors he's getting. I know authentication has been an issue for him, and he's been having issues with CORS which suggests his scripts might be pure JS running in a browser. I suspect either myself or Romyn or both of us could provide a reverse proxy for him to use that just connects the FPL site for him (we're all accessing the same underlying APIs afterall), or we could find a browser plugin to help him through the CORS issues if that's the only real blocker.

That would be three solutions then, which would provide the redundancy we need.

User avatar
Smurphy Paw
FISO Knight
Posts: 14700
Joined: 17 Aug 2006, 17:48
FS Record: Mediocre, apparently
13/14: FPL 1792; FIFA 14 Top 700.
17/18: FPL 696th; loads of mini-League wins and side game promotions
18/19 1FC Köln 5AS Champions
#1 Spring Super League regular season 19/20 & 20/21

Re: Side-game data project / FPL data collection

Post by Smurphy Paw »

RomynPG wrote: 13 Jun 2021, 00:14 I tested it with the H2H leagues and the Rounded Keeper and hope to run the H2H with it next season, with LiveScore :shock: , and get some fun stats for the pub league. I ran this season H2H through and got the same results which is a good sign.
Just imagine, someone competent on the case!
Some of the lack of update last year was real life related. But there’s no way I could do ^^ this.

Meanwhile, LiveScore for H2H :shock: That’d be amazing news

Thanks again each of you involved in this thread, this is the behind the scenes work that really does keep FISO special

User avatar
andybarrell
Dumbledore
Posts: 9003
Joined: 13 Oct 2005, 18:26
Location: Southend-on-Sea
FS Record: 2013 Licence to Kill Winner
2019 S15 R2 Championship Winner
2020 FISO H2H League 1 Winner
2020 5aSide Champions (Falcons)
Contact:

Re: Side-game data project / FPL data collection

Post by andybarrell »

all the above is well over my pay grade :(

all i require to run my side games is a weekly score from all the entrants less transfer hits....and maybe world rank but that is not a major factor

User avatar
andybarrell
Dumbledore
Posts: 9003
Joined: 13 Oct 2005, 18:26
Location: Southend-on-Sea
FS Record: 2013 Licence to Kill Winner
2019 S15 R2 Championship Winner
2020 FISO H2H League 1 Winner
2020 5aSide Champions (Falcons)
Contact:

Re: Side-game data project / FPL data collection

Post by andybarrell »

I have noticed on the eve of the new season that this is not working....is it a case of wait til tomorrow or is it broken?

User avatar
Oxford NZ
Dumbledore
Posts: 6982
Joined: 06 Jan 2017, 03:35
FS Record: They think it's all over!

Re: Side-game data project / FPL data collection

Post by Oxford NZ »

andybarrell wrote: 13 Aug 2021, 08:03 I have noticed on the eve of the new season that this is not working....is it a case of wait til tomorrow or is it broken?
Only just seen this, sorry. Email sent with an alternative sheet that can be linked to your Mirror game.
Linking the data should help to save you an rsi from data entry :)

edit to correct auto spell and a glass of wine that swamped my keyboard :mrgreen:
edit 2 same as above :roll:
Last edited by Oxford NZ on 18 Aug 2021, 08:14, edited 2 times in total.

User avatar
kidzio
Wideboy
Posts: 53
Joined: 06 Sep 2015, 14:42

Re: Side-game data project / FPL data collection

Post by kidzio »

Hi Oxford, can I get it too? Thank you so much.


Sent from my iPhone using Tapatalk

User avatar
Oxford NZ
Dumbledore
Posts: 6982
Joined: 06 Jan 2017, 03:35
FS Record: They think it's all over!

Re: Side-game data project / FPL data collection

Post by Oxford NZ »

kidzio wrote: 18 Aug 2021, 06:58 Hi Oxford, can I get it too? Thank you so much.


Sent from my iPhone using Tapatalk
Email sent :)
Why not join a few FISO side games like the divisional championships as you play FPL?

User avatar
kidzio
Wideboy
Posts: 53
Joined: 06 Sep 2015, 14:42

Re: Side-game data project / FPL data collection

Post by kidzio »

Thanks man! Shall take a look at both the FISO side games and the link tonight :)


Sent from my iPhone using Tapatalk

User avatar
wonkypenguin
Grumpy Old Man
Posts: 1564
Joined: 07 Aug 2016, 01:41

Re: Side-game data project / FPL data collection

Post by wonkypenguin »

Mav3rick wrote: 13 Jun 2021, 09:45 That's great new RomynPG, having more than one source is really the key to ensuring we don't lose the sidegames at any point.

I just checked the original post in this thread and it's been 5 years now since FPL made their significant change. I don't really see any particular reason for the underlying API to change much, but they might move it to a new technology one year. The more people we have with the ability to recover the GRID when that happens the better!

ONZ - I think with TT's script he has issues mainly on actually accessing the APIs. Hopefully he can drop into the conversation later and explain the errors he's getting. I know authentication has been an issue for him, and he's been having issues with CORS which suggests his scripts might be pure JS running in a browser. I suspect either myself or Romyn or both of us could provide a reverse proxy for him to use that just connects the FPL site for him (we're all accessing the same underlying APIs afterall), or we could find a browser plugin to help him through the CORS issues if that's the only real blocker.

That would be three solutions then, which would provide the redundancy we need.
So I got some stupid idea in my head to write some FPL data extraction tools as part of learning some new (to me) languages/tech, and I came across this page (no idea how I've missed it before!). Was gonna have a peruse at what people have done, but I see a lot of the older links seem to be out of action nowadays... is anyone in here still actively maintaining any source in Python/Ruby/anything other interesting languages?

TIA! :)

User avatar
Mav3rick
FISO Jedi Knight
Posts: 20858
Joined: 20 Jul 2009, 20:35
FS Record: FPL: 1082, 1201, 1800, 10203

The stats are dark and full of errors.

Re: Side-game data project / FPL data collection

Post by Mav3rick »

I think there was/is an API access library on GitHub, you can obviously just hit the end points yourself with an http client, but I assume it takes care of some of the data transformation and authentication issues for you.

My stuff is all .NET though.

User avatar
eagle224
Grumpy Old Man
Posts: 2427
Joined: 10 Nov 2005, 22:14
Location: England
FS Record: Veteran

Re: Side-game data project / FPL data collection

Post by eagle224 »

wonkypenguin wrote: 23 Jul 2022, 20:53
So I got some stupid idea in my head to write some FPL data extraction tools as part of learning some new (to me) languages/tech, and I came across this page (no idea how I've missed it before!). Was gonna have a peruse at what people have done, but I see a lot of the older links seem to be out of action nowadays... is anyone in here still actively maintaining any source in Python/Ruby/anything other interesting languages?

TIA! :)
I maintain a basic Python script that collects information for an FPL league using the FPL API. It creates a gameweek report for each member in the league (first page only, though can be adapted). I could PM you a copy to play with. I'm not a pro Python programmer so it is probably not pythonic but worked perfectly well for the past few years for my purposes as the admin of a league.

Example of my manager summary report from GW38 last year:

Code: Select all

Manager Summary
  Entry ID: 841311
   Manager: [name removed]
      Team: Just an illusion
      Rank: 1
    Points: 2369

Gameweek Stats
     Total Points: 76
        Transfers: 2
    Transfer Cost: 4
     Bench Points: 18
  Auto-sub Points: 0
    Gameweek Rank: 527289
      Active Chip: -
          Captain: Son
     Vice Captain: Vardy

Gameweek Transfers
  In: Vardy                 Out: Richarlison           Nett: 10
  In: Toney                 Out: Watkins               Nett: -4

Current Stats
  Pts GS GA CS OG PS PM YC RC BN CP VP
   76  6  2  3  0  0  0  2  0  7 12 10
I also have an end-of-season script that summarises all the members performances, again using the API

Code: Select all

    
    Player: [name removed]
 Team Name: Just an illusion
      Rank: 1
    Points: 2369
GW Started: 1

High Score: 102 in game week 37
 Low Score:  20 in game week  2

Transfer Stats:
  Total:  55, Hits:  19, Cost:  88

Captain Stats:
  Pts: 643 from  37 active, High:  57 in game week 37

Vice-Captain Stats:
  Pts:   4 from   1 active, High:   4 in game week 25

Auto-sub Stats:
  Pts:  94 from  28 active, High:  11 in game week 10

Bonus Point Stats:
  Pts: 297, Captain Extra:  46, Bench:  25

Starting Selection Stats:
  YC:  47, RC:   1, GS: 103, GA:  85, PM:   1, CS: 134

Bench Selection Stats:
  YC:   9, RC:   0, GS:   9, GA:   2, PM:   0, CS:  11

By Position:   GKP   DEF   MID   FWD
       Goals     0    10    64    29
     Assists     0    18    46    21
Clean Sheets    10    60    64    29
Bonus Points    16    73   131    77
Total Points   148   664  1142   503

Above average gameweek scores: 30

User avatar
eagle224
Grumpy Old Man
Posts: 2427
Joined: 10 Nov 2005, 22:14
Location: England
FS Record: Veteran

Re: Side-game data project / FPL data collection

Post by eagle224 »

The API has been updated to include the new player profile statistics that have been mentioned on the The Rounded Keeper thread. These can be found under the player elements (sample attached).
NewStats.png
You do not have the required permissions to view the files attached to this post.

View Latest: 1 Day View Your posts
Post Reply

Return to “FPL Links, Mini-Leagues & Side Games”