Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate feasibility of importing Written Questions and Early Day Motions on climate/nature topics (from TheyWorkForYou?) #603

Closed
zarino opened this issue Sep 2, 2024 · 4 comments
Assignees

Comments

@zarino
Copy link
Member

zarino commented Sep 2, 2024

Data on MPs voting on climate/nature bills is going to be thin on the ground for a while, and with so many new MPs this intake, we can’t rely on data from the previous parliament to give us a full picture either. So we need to looks for other indicators of MP support for / opposition of climate and nature issues, from their other activities in parliament.

Written Questions and Early Day Motions could be two such sources of data.

  • Where do we get the data from?
  • How do we filter down to just climate and nature related WQs/EDMs?
  • How do we present it to be most useful?
@zarino zarino self-assigned this Sep 2, 2024
@zarino
Copy link
Member Author

zarino commented Sep 6, 2024

Where do we get the data from?

Two options for Written Questions/Answers:

How do we filter down to just climate and nature related WQ’s

My instinct would be to use API search params to return a combination of:

  • all questions submitted to DESNZ, DEFRA, and maybe DfT?
  • any questions submitted to other departments, which contain terms like net zero, climate change, climate emergency, climate crisis, nature, biodiversity, pollution, decarbonisation, carbon capture, renewable energy, onshore wind, offshore wind, wind turbine, solar panel, solar farm, etc

The former will catch most climate/nature related questions, while the latter will mop up any remainder submitted to the other departments, and hopefully, if we can make the search terms specific enough, we won’t get too many false-positives.

How do we present it to be most useful?

Perhaps show the titles of the 3 most recent questions submitted by the constituency’s MP (each one linking to the full question on TheyWorkForYou or the UK Parliament site), and then a button that unfolds a full list in place?

@ajparsons
Copy link
Contributor

Related mysociety/twfy-votes-django#2

@struan
Copy link
Member

struan commented Sep 10, 2024

For the EDMs I think we want to identify some relevant EDMs for this parliament as the previous ones are all in the last one and hence many of the MPs will not have had a chance to sign them.

Having had a look I think the following might be good which all have ten or more signatures:

https://edm.parliament.uk/early-day-motion/62322 (Cumbria Coal mine) 44 signatures
https://edm.parliament.uk/early-day-motion/62377 (Zero Carbon homes) 22 signatures
https://edm.parliament.uk/early-day-motion/62379 (Tax on private jets) 20 signatures
https://edm.parliament.uk/early-day-motion/62449 (low carbon construction stuff) 19
https://edm.parliament.uk/early-day-motion/62432 (Fossil fuel non proliferation treaty) 12
https://edm.parliament.uk/early-day-motion/62317 (Heathrow 3rd runway) 10
https://edm.parliament.uk/early-day-motion/62378 (Flooding in severn catchment area) 10

And then there are some water company ones:

https://edm.parliament.uk/early-day-motion/62320 (Consumer water bills but also talks about sewage) 43 sigs
https://edm.parliament.uk/early-day-motion/62319 (thames water price rises - possibly not environmental enough) 19
https://edm.parliament.uk/early-day-motion/62375 (Southern Water, Havant Thicket Reservoir - niche?) 17
https://edm.parliament.uk/early-day-motion/62338 (Public ownership of water) 16

@zarino zarino removed their assignment Sep 10, 2024
struan added a commit that referenced this issue Sep 17, 2024
Mostly the same code as the existing importer, only it uses a CSV to
getg the list of EDMs to import so this can be updated without having to
touch the code.

Part of #603
struan added a commit that referenced this issue Sep 17, 2024
Mostly the same code as the existing importer, only it uses a CSV to
getg the list of EDMs to import so this can be updated without having to
touch the code.

Part of #603
struan added a commit that referenced this issue Sep 18, 2024
Mostly the same code as the existing importer, only it uses a CSV to
getg the list of EDMs to import so this can be updated without having to
touch the code.

Part of #603
@struan
Copy link
Member

struan commented Sep 18, 2024

I think both of these are now done, at least in an initial form. Will probably need some improvements along the way.

The wrans this has a cron so should run every day and fetch the previous days wrans from TWFY. I might add a once a week to do the last seven days on a Sunday just as a backup.

@struan struan closed this as completed Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants