Lurker News
Hi 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 comments
crinkly#
This is great. Weaponising the stupidity of the idea, compromising it entirely until it's so obviously ineffectual it's unenforceable, then going after the politicians who pushed it for the waste of money and effort.

Create a scandal. Bad PR is the only way out now.

gardnr#
It looks like the code was/is going to be published?

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

Arubis#
This is the sort of thing that brought me into tech in the first place, before it became the villain it had started off fighting: humorous, effective pushback against stodgy power structures. More please!
ta12431 reply#
Your MP

    Name: Mike Wood
    Party: Conservative
    Constituency: Stafford
Err, Stafford has been Labour since the last election, and before that it was a Conservative, but it was Theodora Clarke. Mike Wood is MP for Kingswinford and South Staffordshire.

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?

Load more comments