Skip to content

Provides a set of functions to extract MP information (in the UK)

Notifications You must be signed in to change notification settings

MatthewSmith430/mpscrapeR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

mpsrapeR

This package scrapes MP data - it is currently a work-in-progress with limited functions. It chiefly scrapes data from the following website

The following function, mp_info extracts details for a current MP for a given constituency.

library(mpscrapeR)
library(pander)
Ashton_under_Lyne<-mp_info("Ashton-under-Lyne")

pander(Ashton_under_Lyne)
constituency constituency_status mp_name member_id
Ashton-under-Lyne Labour Hold Angela Rayner 4356

Table continues below

mp_link first_name surname
https://members.parliament.uk/member/4356/contact Angela Rayner

Table continues below

party first_date first_month first_year last_date last_month
Labour 2015-05-07 5 2015 current current

Table continues below

last_year number_times_elected membership_post_gov_opp_committee gender
current 3 Party Chair, Labour Party/Deputy Leader of the Labour Party/National campaign co-ordinator/Deputy Leader of the Official Opposition/Shadow Secretary of State for Education/Shadow Minister (Equalities Office) (Women and Equalities)/Shadow Minister (Work and Pensions)/Opposition Whip (Commons)/Housing, Communities and Local Government Committee female

Table continues below

dob birth_year birth_month birth_day natioanlity alma_mater
1980-03-28 1980 03 28 NA NA

Table continues below

hansard_link
https://hansard.parliament.uk/search/MemberContributions?memberId=4356&type=Spoken

About

Provides a set of functions to extract MP information (in the UK)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages