Projects Cooking Miner

Cooking Miner

A recipe miner that reads recipe sites and newsletters and picks a short list of dishes to cook each day.

Sites get read every night and newsletters as they arrive. The list appears on the Cooking page of my dashboard, with about five dishes.

A two recipe daily edition with charred cabbage and white beans on toast, each with cook time, a one sentence reason it was picked, and save, plan and dismiss buttons.
Real screen, sample data.

Scoring Recipes

Nearly every recipe online is competent, so the score asks how excited I’d be to cook the dish this week. The model is told to spread its scores out, because a cutoff doesn’t help if everything scores the same.

The publisher’s name is left out of what the model receives, and a test confirms it. The page text can still mention a name, so this removes the field, not every trace.

Older Recipes

A good recipe doesn’t go stale. The nightly crawl looks at recent posts, but once a recipe is in the collection, its publication date stops counting. An older recipe that scored 72 ranks above a new one that scored 52.

When a newsletter features a recipe, it gets a note on its card and, if its score is older than the feature, a fresh score. The feature doesn’t affect its ranking.

The Daily List

Code decides what makes the list, not the model. A recipe needs a recommended score to qualify, with one exception: a single wildcard scoring 60 to 69, labeled on its card.

Thin Days

Some days don’t have five good recipes. Recently shown recipes can come back to bring the list up to three, and their cards say so. Past that, the list ships short and raises an alarm rather than filling out with weak picks.