Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ twfy Public

❗ This is a read-only mirror of the CRAN R package repository. twfy — Drive the API for TheyWorkForYou. Homepage: https://conjugateprior.github.io/twfy Report bugs for this package: https://github.com/conjugateprior/twfy/issues

Notifications You must be signed in to change notification settings

cran/twfy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

twfy

Travis-CI Build Status

This package wraps TheyWorkForYou's API for R. TheyWorkForYou is a parliamentary monitoring site that scrapes and repackages Hansard (the UK's parliamentary record) and augments it with information from the Register of Members' Interests, election results, and voting records to provide a unified source of information about UK legislators and their activities.

Set up

You'll need an API key to. Get it here.

Your first API call (or call to set_api_key) will prompt you to paste it into the R console, after which it will be available for all future R sessions.

Installation

Install twfy using devtools:

devtools::install_github("conjugateprior/twfy")

If this does not work

install.packages("devtools")

and try again.

Results

In general, API call results are returned as json, then parsed into nested data.frames and lists using jsonlite. One exception is getBoundary which returns a string of KML.

Documentation

Package documentation is incomplete. A more nearly complete set of documentation can be found from the API source.

About

❗ This is a read-only mirror of the CRAN R package repository. twfy — Drive the API for TheyWorkForYou. Homepage: https://conjugateprior.github.io/twfy Report bugs for this package: https://github.com/conjugateprior/twfy/issues

Resources

Stars

Watchers

Forks

Packages

No packages published