This app pulls html data for football teams from the Sagarin NFL Ratings and uses it to predict which team will win for any given week.
A schedule file must exist before fetching ratings. To get a schedule file run the following command:
cd cmd
deno run --allow-net --allow-write app/scrapeSchedule.ts
Assuming you've installed Deno already, you can the following command to run generate the picks.
cd cmd
deno run --allow-net --allow-read mod.ts -w 11
The results can also be written to a file with the -l
and/or -v
flags. When
doing so, also pass the --allow-write
flag into deno. The -v
flag will write
the filename and location to the console.
cd cmd
deno run --allow-net --allow-read --allow-write app/main.ts -w 11 -l -v
The web application can be run locally with the following command:
cd fresh-web
deno task start
cd cmd
deno run --allow-net --allow-read --allow-env money-line.ts -w 17
Favicon provided by Squid Ink at Icon Archive