Python scripts for optimizing Daily Fantasy Football line-ups. In the 2021 season it got ranked Diamond (99th percentile) in Yahoo DFS quickmatches, and placed 504/223186 in the season-long 2021 Yahoo cup.
MIT License
5
stars
0
forks
source link
fix(fetch): adjust the fetch script for the new FantasyPros tables #3
There's a new base url for weekly projected score data, and luckily enough it doesn't use the new JavaScript tables (yet).
This PR addresses the new url, and adds a quick hack to eliminate a new table header they added.
Here's a preview for week 1 as of Friday night. Will need to keep an eye on Ekeler's status, and I'm not loving the Helaire pick, but the rest looks solid.
name position team salary points
0 Christian McCaffrey RB CAR 39.0 22.0
9 Travis Kelce TE KC 33.0 16.7
32 Jalen Hurts QB PHI 26.0 20.8
53 Austin Ekeler RB LAC 21.0 15.0
100 Tyler Lockett WR SEA 19.0 13.8
102 Keenan Allen WR LAC 18.0 13.5
104 Clyde Edwards-Helaire RB KC 18.0 13.9
168 Robby Anderson WR CAR 14.0 11.9
197 San Francisco 49ers DEF SF 12.0 7.4
Total used amount of salary cap: 200.0
Projected points: 135.0
The smell of football is in the air, it's finally here. đŸ§€
--
Edit: ran it again the next day, these picks look better IMO
name position team salary points
0 Christian McCaffrey RB CAR 39.0 22.1
9 Travis Kelce TE KC 33.0 16.7
32 Jalen Hurts QB PHI 26.0 21.0
54 Austin Ekeler RB LAC 21.0 14.9
79 Najee Harris RB PIT 20.0 14.4
96 Tyler Lockett WR SEA 19.0 13.8
111 Keenan Allen WR LAC 18.0 13.6
168 Robby Anderson WR CAR 14.0 11.9
410 Green Bay Packers DEF GB 10.0 7.1
Total used amount of salary cap: 200.0
Projected points: 135.5
Edit2: should have ran the first lineup, not that CEH was a lot better than Najee but Green Bay had a rough game .. went 5-1 regardless though.
There's a new base url for weekly projected score data, and luckily enough it doesn't use the new JavaScript tables (yet).
This PR addresses the new url, and adds a quick hack to eliminate a new table header they added.
Here's a preview for week 1 as of Friday night. Will need to keep an eye on Ekeler's status, and I'm not loving the Helaire pick, but the rest looks solid.
The smell of football is in the air, it's finally here. đŸ§€
--
Edit: ran it again the next day, these picks look better IMO
Edit2: should have ran the first lineup, not that CEH was a lot better than Najee but Green Bay had a rough game .. went 5-1 regardless though.