The I's Approval Tracker

Contents

Front-end

  • Index.js: Contains d3 code for visualisation
  • index.html: Basic html template for simple css formatting of overlay title
  • style.css: Basic css styling for title and svg elements

Back-end

  • poll_scrape.py: Poll scraper, written in Python with selenium and Pandas
  • poll_model.R: Modelling, uses a loess model with span of 0.5 to produce predictions, also produces clean poll file.

By Tom Saunders | @tomjs