The Purpose of DailyFBB-Engine is to generate "the best lineup", or the lineup with the highest projected point output in a given day. The data powering this script is from numberfire (www.numberfire.com) & swish analytics (www.swishanalytics.com).
The current iteration of this script only works with numberfire data & fanduel (www.fanduel.com) pricing. Would love for collaborators to help broaden the scope of this project. Refer to the bottom for contribution ideas - Would appreciate the help!
Hopefully this script can help set the best lineup without effort.
Prerequisites: Node
-
Download all files from this page, and make sure they are at the same level in a folder.
-
In Terminal, move into the folder (ex cd /Downloads/DailyFBB-Engine )
-
Once in the folder in Terminal, make sure to run numberfire.py, and write the results to output.json
node numberfire.js > output.json
-
Also, you'll need to run the swish file in terminal as well:
node swish.js > outputSwish.json
-
Once the output file is updated, run query.js in terminal
node query.js
That's it.
Its important to change the filters to help change the weight of your results. For instance, if you would like to consider SGs who will score 30+ fantasy points but SFs who will score 25+ fantasy points, you can change these levers by changing the third parameter for the executed functions on lines 33-37 in query.js. In a future release, I will be creating a way to change these filters from directly in the command line.
There's a million ways, but here's a few.
-
Use Algorithm for other sports (Baseball, Football)
-
Update Algorithm to report on Draft Kings projections
-
Adding Roto & other data sources.