- R
- Python
- Selenium for Python
- TeX
- Knitr for TeX
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.
- Make sure
pdflatex
is on your$PATH
- If your
python
orRscript
interpreters are in different locations than those used in thescrape
andknit
scripts, modify those scripts accordingly