Giter VIP home page Giter VIP logo

guikema_nfl_pool's Introduction

guikema_nfl_pool

Python Script to automate the Guikema Family NFL Pool

Based on being elected Commissioner of the Family Football Pool against my will (damn you democratic process!), I decided to automate the process a bit.

Here is how I use the script:

  1. Update the schedule: sudo python /usr/local/lib/python2.7/dist-packages/nfldb/update.py

  2. Run the script with the current week, generating a csv with the schedule in the csv/sched directory:

    python debug.py <week>

  3. Update schedules into Drive account; use create_form.gs to create forms from these files

  4. Download the results as Week #.csv in the csv/score directory

    cp ~/Downloads/Week#\ \(Responses\)\ -\ Form\ Responses\ 1.csv csv/score/Week\ #.csv

  5. Once the week is completed, run the script again, which will compare each person's picks against the actual results, then output the score for the week and the season's results

chrisguikema@ubuntu:~/nfl$ python nfl.py 2
Calculating Score!
----------------------
 2017 Week 2 Results
----------------------
Katie 11
Laura 10
Curt 10
Chris 10
Tyler 9
Sam 8
Amy 7
Troy 7
---------------------
 2017 Season Results
---------------------
Laura 21
Chris 20
Katie 20
Tyler 19
Sam 18
Amy 18
Curt 17
Troy 16
---------------------

Future Developments

  • Determine how to use the go compiler to use the skicka tool in order to grab the csv from Drive automatically. Information for skicka can be found here
  • Find out how to create a google form from a csv to take all manual work out of things
    • Done in commit 20cb1e6 with create_form.gs

guikema_nfl_pool's People

Contributors

chrisguikema avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.