Skip to content

Fetch Current MP names, constituencies and contact details from UK Parliament

License

Notifications You must be signed in to change notification settings

pranman/FetchMPData

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FetchMPData

FetchMPData is a Python script designed to fetch and store the names, constituencies, and contact details of current Members of Parliament (MPs) in the UK.

The data is fetched from the UK Parliament's Members API.

Features

  • Fetches the names, constituencies, and contact details of current MPs.
  • Stores the data locally as JSON.
  • Handles pagination of API results.

Dependencies

  • Python 3.11 but should be compatible with Python 3.6+

Usage

  1. Run the script using the command python GetMPs.py
  2. The script will create a JSON file named HoC_active.json in the same directory, containing the fetched data.

About

Fetch Current MP names, constituencies and contact details from UK Parliament

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages