post: festivals hidden in the bureaucracy
All checks were successful
Deploy to OVH VPS / deploy (push) Successful in 36s

This commit is contained in:
Lorenzo Iovino 2026-11-26 09:47:51 +01:00
parent da1de19fcb
commit 0221009352
2 changed files with 55 additions and 64 deletions

View file

@ -0,0 +1,55 @@
---
title: "Festivals hidden in the bureaucracy"
description: "Behind every village festival in Italy there is a boring municipal act. This is how I turn those PDFs into a map of 84,000 sagre, concerts and patron saints."
pubDate: 2026-11-26
heroImage: "../../assets/photos/festivals-hidden-in-the-bureaucracy/cover.jpg"
tags: ["side-projects", "open-data", "ai", "ocr", "piazza-in-festa"]
---
This is the third post of the series that started with [six months reading every Italian municipality](/blog/six-months-reading-italian-municipalities).
And this is my favorite part, the one I didn't plan at all.
## The side effect
When a town organizes a festival, a *sagra*, a concert in the square, there is almost always an act about it. Money approved, road closed, stage rented, electricity for the lights, the band paid 400 euros.
Nobody writes these acts thinking "this is an event". They write them to spend public money in the right way. But a party leaves a paper trail, the same way a tender or a public work does.
So the events are already there, hidden in the bureaucracy. 🎉
I started pulling them out and that became [Piazza in Festa](https://piazzainfesta.it): about **84,000** events across Italy, every one of them born from a municipal act. Most are tiny things you will never find on the big event sites. The patron saint of a village of 800 people. A *sagra* for a vegetable you didn't know existed. A summer cinema in a square with forty plastic chairs.
I find these more beautiful than any festival with a sponsor.
## From a boring PDF to a party
Here is the fun part, the technical one.
An act gives you almost nothing useful on its own. A title like *"Determina n. 214 - impegno di spesa per manifestazione estiva"* and a PDF attached. The party is inside the PDF, written in the driest Italian you can imagine.
So the pipeline reads the act and tries to answer very human questions. **What** is happening? **Where**, exactly, not just "the town" but the square? **When**, which is the hard one, because an act approved in May can talk about a concert in August. Is this even an event at all, or just a boring purchase?
Three things do most of the work:
- a model reads the text of the act and proposes an event, with a confidence score, so I can throw away the ones it isn't sure about
- very often the real gold is a **poster attached to the act**, a flyer scanned as an image. I run OCR on it, because the flyer has what the act hides: the exact dates, the program, the time, sometimes the menu of the *sagra*
- then I geocode the place and put a dot on the map
When it works, a line of spending becomes "Saturday night, live music in the main square of a village you never heard of". That little jump still makes me smile every time. 😄
## The events that come back
One more nice problem.
Most of these festivals are **annual**. Same village, same saint, same *sagra*, only the date moves by one year. So an event is not really a single date, it is a thing that repeats.
If I treat each year as a new event I get duplicates forever and a page that dies the day after the party. So instead I keep the occurrences together and a page that is "over" doesn't say "bye", it says "we'll tell you when it's back". Next year the same page wakes up with a new date.
A festival is one of the few things in open data that you can actually predict.
Next time: a product that nobody bought and what I did about it.
---
<em class="text-sm">Cover: the homepage of [Piazza in Festa](https://piazzainfesta.it), with real posters of Italian town festivals.</em>