https://github.com/rardevelopment/fantasy-critic-score-tracker
An unofficial script for logging Fantasy Critic league scores to an Excel spreadsheet.
https://github.com/rardevelopment/fantasy-critic-score-tracker
active
Last synced: 8 months ago
JSON representation
An unofficial script for logging Fantasy Critic league scores to an Excel spreadsheet.
- Host: GitHub
- URL: https://github.com/rardevelopment/fantasy-critic-score-tracker
- Owner: rarDevelopment
- License: agpl-3.0
- Created: 2024-01-07T18:42:08.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-08T06:57:39.000Z (over 2 years ago)
- Last Synced: 2024-12-02T08:35:42.863Z (over 1 year ago)
- Topics: active
- Language: C#
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fantasy Critic Score Tracker Script
A script for generating CSV files with Fantasy Critic scores.
### Important Note: This will only work for public leagues.
## Running The Script
- If you don't already use Visual Studio, you can download and install Visual Studio Community for free [here](https://visualstudio.microsoft.com/vs/community/).
- Download or Clone this repository in its entirety
- Open the .sln file in Visual Studio
- Navigate to the Program.cs file
- Set the location where you want the .csv files to be generated [here](/FantasyCriticScoreTracker/Program.cs#L11)
- Update the `leagueIds` array, starting [here](/FantasyCriticScoreTracker/Program.cs#L13-L17) to include all of your League IDs that you want to generate files for. Note that they must be in "quotes" and must be separated by a comma (it's okay to put them on separate lines). You're allowed to have only one, also.
- Make sure the [year](/FantasyCriticScoreTracker/Program.cs#L20) is set to the correct year.
- Run the code 
This should generate your Excel files. You can run this whenever you want and it will add lines to those CSV files, provided you don't move or rename them.
## Running with Task Scheduler in Windows
Once you've built and run it once using the above instructions, you'll have a built .exe file you can set to run on a scheduler. Here's how I did mine:
- Open Windows Task Scheduler
- Create a Basic Task

- Name your Task
- In the Trigger section, select how often you want the script to run. Remember that more runs means more data points, so think about how you want your data to be tracked. For Fantasy Critic, daily is probably far too often, weekly could be good, and monthly is probably fine as well. It's up to you!
- In the Action section, choose "Start a program". The next screen will have you browsse for a program. Browse to the fantasy-critic-score-tracker\FantasyCriticScoreTracker\bin\Debug\net8.0\ and choose **FantasyCriticScoreTracker.exe**.
- Click Finish
This should set you up with a scheduled task that runs the script. Feel free to customize your task further, like adding a message step to show a message when this runs (this just requires adding an additional Start a Program step under actions, where the program is `msg` and the arguments you pass in are `* "Fantasy Critic Score Updater was run."` for example).