mysociety / local-intelligence-hub

https://www.localintelligencehub.com
Other
6 stars 2 forks source link

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

Closed zarino closed 2 months ago

zarino commented 2 months ago

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.

zarino commented 2 months ago

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:

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 commented 2 months ago

Related https://github.com/mysociety/twfy-votes-django/issues/2

struan commented 2 months ago

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

struan commented 2 months ago

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.