Giter Club home page Giter Club logo

da_truth's Introduction

Fantrax Data Scraper

Collect Roto League data

Use

  • get_data.py collects all non-rostered players into available_players.csv
  • get_teams.py creates a csv file for each team in the league
  • reorg_excel.py rewrites all the csv files collected into excel files
  • gen_yesterday_html.py displays yesterday's stats for your team
  • get_player_stats.py collects player's stats for yesterday (called from gen_yesterday_html.py
  • utilities.py contains functions used by the preceding files
  • fantrax.py small run once executable to make all the above calls.

Yesterday is defined to be yesterday or today if after 11 PM. Time zone is assumed to be PDT.

ini File

gnus.ini contains the following fields in the DEFAULT section:

  • username
  • passwd
  • league: The league id (16 lower case and numeric characters)
  • downloaddir: Folder where downloads get sent on your system
  • extrastuff: Additional text found in some fantrax file links
  • myteam: My fantasy team name
  • mydir: Home directory of the files here

Easiest Usecase

Run python fantrax.py

General Description

Selenium is used to provide webpage access, and the download button made available by Fantrax is used to download the data. Csv files are rather clunkily copied locally.

Get_player_stats.py makes use of a jinja2 template named dayscores.txt that is stored in a directory named templates.

This ain't very efficient, but even obsessive people have no need to run this more than once a day.

This software is licensed under the MIT license.

da_truth's People

Watchers

Warren Usui 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.