Show HN: Use Their ID – Use your local UK MP’s ID for the Online Safety Act (opens in a new tab)use-their-id.com
862 pointsHi HN -
I made a site that takes a UK postcode, grabs the local MP's information and generates an AI mockup of what their ID might look like.
It's a small, silly protest at the stupidity of the Online Safety Act that just came into force.
edit - My open AI credits got hugged to death, please use a known postcode (like one from Kier Starmer's constituency, WC2B6NH) in the meantime.
Comments (281) 39 threads
Earlier commentsCreate a scandal. Bad PR is the only way out now.
From the FAQ:
> How did you do this?
> This site uses React for the frontend and Node.js for the backend. The MP data is fetched from the UK government public API, and the AI-generated images use the latest model from open AI. The images are stored on a Cloudflare R2 bucket. The code is open source, so you can check it out on GitHub. It was done in a hurry.
The git repo linked from that FAQ shows a 404: https://github.com/timje/use-my-mps-id
Surely the way you build something like this is a postcode -> constituency table (I assume available free), a constituency -> mp table, and mp -> image generation (with caching or generate multiple versions)
Even if the lookup data mis-selected the constituency (I think some postcodes can straddle constituencies), surely the Constituency/Name/Party would be consistent.
I'm guessing you're using chat-gpt for the entire program?
https://members-api.parliament.uk/api/Location/Constituency/...
returns three constituencies, all of which look fine to me, but the "Stafford" one is the middle, and you're using the data from the first returned constituency
All comments shown.
Couldn't load more comments. Check your connection and try again.