Basic bridge to Huffpo API from R (using httr!)
R
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE.md
README.md
etaByState.R
friendlyURL.R
huffpoGET.R
miscImport.R
parsePoll.R
plotpres.R
president.R
xPath.R

README.md

Huffinton Post API for R

Relatively simple connection to Huffpo's API

What works now

  • State polls can be downloaded and parsed into dataframes with the appropriate matching of responses to questions, pollsters, polls and topics.
  • We mostly ignore the "charts" and "chart" options and stick to "polls"
  • Merge commensurable "approval" responses. This involves some naughty bifurcation of responses but makes everything more sensible.
  • US map works.

What may work in the future

  • Graphs!

Extras

  • Some xPath helper functions like building expressions including conditionals. In the main we use json and ignore the original structure (as there are no attributes). But if you want to use XML that's there.
  • A user friendly request generator exists.

What you can do

  • Send me nasty emails.
  • Or pull requests