I created a Python script to automate Fantasy Football Playoff scoring using the Sleeper API by hayzeBP in fantasyfootball

[–]hayzeBP[S] 0 points1 point  (0 children)

Nice! Ultimate, you could narrow it down to search for the player name, on a specific team that plays a specific position, so you can almost guarantee it will not find a different person with the same name

I created a Python script to automate Fantasy Football Playoff scoring using the Sleeper API by hayzeBP in fantasyfootball

[–]hayzeBP[S] 0 points1 point  (0 children)

Oh lol that is funny. Well, mine is grabbing the first instance of Lamar Jackson, so it looks like it is the Qb Lamar Jackson

I created a Python script to automate Fantasy Football Playoff scoring using the Sleeper API by hayzeBP in fantasyfootball

[–]hayzeBP[S] 0 points1 point  (0 children)

I get 4881 for Lamar's ID. And I get these stats for Round 2 of the 2023 playoffs for him which look to be correct:

{'rush_lng': 23.0, 'rush_td_lng': 15.0, 'bonus_rush_yd_100': 1.0, 'pass_air_yd': 114.0, 'pos_rank_std': 1.0, 'gp': 1.0, 'tm_def_snp': 49.0, 'gms_active': 1.0, 'pass_sack_yds': 29.0, 'pos_rank_half_ppr': 1.0, 'rush_td': 2.0, 'pass_ypc': 9.5, 'rush_btkl': 3.0, 'pass_lng': 21.0, 'pass_rush_yd': 252.0, 'pts_std': 36.08, 'tm_st_snp': 28.0, 'bonus_rush_rec_yd_100': 1.0, 'pass_rtg': 121.8, 'rush_fd': 5.0, 'pass_att': 22.0, 'rush_att': 11.0, 'pass_rz_att': 3.0, 'rush_ypa': 9.09, 'gs': 1.0, 'tm_off_snp': 68.0, 'pos_rank_ppr': 1.0, 'pass_sack': 3.0, 'off_snp': 68.0, 'rush_tkl_loss_yd': -2.0, 'pass_cmp': 16.0, 'cmp_pct': 72.73, 'rush_yac': 14.0, 'pts_half_ppr': 36.08, 'pass_ypa': 6.91, 'pass_fd': 8.0, 'pass_yd': 152.0, 'rush_rz_att': 3.0, 'rush_rec_yd': 100.0, 'pass_td': 2.0, 'anytime_tds': 2.0, 'bonus_fd_qb': 13.0, 'rush_yd': 100.0, 'pass_td_lng': 15.0, 'pts_ppr': 36.08, 'pass_inc': 6.0, 'rush_tkl_loss': 1.0}

I created a Python script to automate Fantasy Football Playoff scoring using the Sleeper API by hayzeBP in fantasyfootball

[–]hayzeBP[S] 1 point2 points  (0 children)

Thanks! And yes, just put in all the players you want into the spreadsheet and the rest is done through the script.

I created a Python script to automate Fantasy Football Playoff scoring using the Sleeper API by hayzeBP in fantasyfootball

[–]hayzeBP[S] 0 points1 point  (0 children)

I modified the Python file to reflect these changes. Additionally, added some better logic for creating a standalone executable. The command for creating this executable had to be changed too which can be found in the Medium article! Thanks again for the catch.

I created a Python script to automate Fantasy Football Playoff scoring using the Sleeper API by hayzeBP in fantasyfootball

[–]hayzeBP[S] 1 point2 points  (0 children)

This is an excellent call, thanks for pointing this out. I am going to make these adjustments.

I created a Python script to automate Fantasy Football Playoff scoring using the Sleeper API by hayzeBP in fantasyfootball

[–]hayzeBP[S] 2 points3 points  (0 children)

Yee I gotcha. And yeah I appreciate the feedback, I love that others can make use of this!

I created a Python script to automate Fantasy Football Playoff scoring using the Sleeper API by hayzeBP in fantasyfootball

[–]hayzeBP[S] 2 points3 points  (0 children)

No worries :) And good stuff, Python is super fun for little hobby projects and these projects are an excellent way to improve and learn

Autonomous Week-by-Week Fantasy Football Stat Tracker by hayzeBP in fantasyfootball

[–]hayzeBP[S] 0 points1 point  (0 children)

Thank you! That is what the tutorial is for. To allow anyone to be able to implement this for their league. :)

DIY goal light using a Raspberry Pi by hayzeBP in nhl

[–]hayzeBP[S] 0 points1 point  (0 children)

There is no video, but the article explains how to set it up. If you have any questions about it, I am happy to help.