Requirements
- R
- Python
- Selenium for Python
- TeX
- Knitr for TeX
Instructions
Just run ./factory from the command line within this directory. It will:
- Run a Python script which will use Selenium to scrape a web page for football statistics.
- "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.
- Compile the resulting TeX file and opens the resulting PDF.
- Clean up any temporary work files.
Troublshooting
- Make sure
pdflatexis on your$PATH - If your
pythonorRscriptinterpreters are in different locations than those used in thescrapeandknitscripts, modify those scripts accordingly