Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 684 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 684 Bytes

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.