Import public sources¶
An importer reads a public source and writes one event per record, each value quoted from it, resolved against what you hold. Import changesets merge themselves — you asked for the whole dataset — and anything your policy would have asked about is counted in the report.
analects import --list # what can be imported
analects import <name> <file> [--dry-run] # read it, resolve it, stage or merge it
Importers that read the web (planning, holyrood, areas, councillors,
companies-house-api) need fetch: record or on in analects.yaml, and read
politely: a page read in the last 20 hours is not read again, each server has a
daily cap and a pause between requests, and a server that refuses is left alone
until the next day. Tests never touch the network.
| Importer | Source | What it gives |
|---|---|---|
planning |
councils' planning portals (Idox, Atrium, Agile, Ocella), the DPEA, the Planning Inspectorate, the national infrastructure register, PEDW; PlanIt's search | applications, deadlines, counts, decisions and who takes them, appeals; candidates for a scope. Never who objected |
holyrood |
Scottish Parliament open data | MSPs, divisions and how each voted, questions and motions |
areas |
MapIt | the ward, constituency and region each site lies in |
councillors |
Democracy Club | councillors elected for each ward |
committee-votes |
a council minute, transcribed | a committee's named vote, checked against the minute |
companies-house |
Companies House bulk product | company numbers, offices, former names |
companies-house-api |
Companies House API (key) | who controls each company, up the chain; individuals counted, never named |
parliament-member, parliament-votes, parliament-interests, hansard |
UK Parliament APIs | MPs and peers, divisions, registered interests, what was said |
neso-tec |
NESO's transmission connection register | grid connections and who holds them |
epoch-data-centers |
Epoch AI's data centres (CC-BY) | sites, owners and a dated timeline |
Each importer's input format is in its module docstring
(src/analects/core/importers/), and the CLI reference lists
its options. What a real source forced — a register with no category for what
you are looking for, a page that changed shape — is recorded as a finding
decision and summarised in each pack's FINDINGS.md.
Planning, briefly¶
# applications.yaml
- site: Example data centre # a site you already hold, by name
applications:
- https://<council portal>/applicationDetails.do?keyVal=…&activeTab=summary
appeals:
- https://acp.planninginspectorate.gov.uk/ViewCase.aspx?caseid=…
- search: planit # find applications, as candidates of a scope
terms: ["data centre"]
since: 2024-01-01
scopes: {England: england-data-centres, Wales: wales-data-centres}
analects import planning applications.yaml
analects query run open_for_comment # what can still be objected to, soonest first