No description, website, or topics provided.
Python Shell Nu
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
factory
knit
scrape
tds2012-out.pdf
tds2012.tex

README.md

Requirements

  1. R
  2. Python
  3. Selenium for Python
  4. TeX
  5. Knitr for TeX

Instructions

Just run ./factory from the command line within this directory. It will:

  1. Run a Python script which will use Selenium to scrape a web page for football statistics.
  2. "Knit" a TeX file with embedded R that cleans the raw scraped data, produces a histogram of touchown passes for teams, and displays the teams with the least and greatest number of touchdowns.
  3. Compile the resulting TeX file and opens the resulting PDF.
  4. Clean up any temporary work files.

Troublshooting

  • Make sure pdflatex is on your $PATH
  • If your python or Rscript interpreters are in different locations than those used in the scrape and knit scripts, modify those scripts accordingly