Skip to content
CookDex docs
You're reading the docs for CookDex v2026.10.5, an earlier release. See this page in the latest docs.

Recipe Dredger

Most Mealie tooling waits for you to paste a URL. CookDex can go and find recipes for you. In the web UI, Discover manages the sources it crawls; the crawl itself runs as the recipe-dredger task.

Point it at a recipe site and it reads that site’s robots.txt and sitemap to enumerate candidate pages, then checks each one before importing anything. A page has to actually look like a recipe: CookDex looks for schema.org/Recipe JSON-LD with real ingredients and instructions, and cross-checks with recipe-scrapers, so listicles and how-to posts are rejected rather than imported and cleaned up later. Anything that passes is handed to Mealie’s own scraper.

It is built to be a polite crawler: robots.txt crawl-delay is honored, with a one-second floor that configuration cannot lower. Sitemaps are cached, and URLs already imported or rejected are skipped on later runs.

The Dredger’s settings are in Settings under Dredger:

Setting Default What it does
Recipe language (DREDGER_TARGET_LANGUAGE) en Recipes in other languages are skipped.
Pause between pages (DREDGER_CRAWL_DELAY) 2.0 seconds How long to wait between pages on the same site. A site’s own robots.txt wins when it asks for longer.
Re-read site maps after (DREDGER_CACHE_EXPIRY_DAYS) 7 days How long a site’s list of recipe pages is reused before it’s read again.

On Discover, pick At most (how many new recipes one run may import), then click Preview. A preview reports what it would import without writing to Mealie or recording any state. When it looks right, click Import now.

A preview’s pages are examples of what a run finds, not a list of what it will import. Each run visits your sources and their pages in a new random order, so a live run can import different pages from the same sites.

While an import runs, Discover shows a banner with a Stop button. Recipes it already imported stay in Mealie.

Discover: one source switched on, the At most picker set to 25 new recipes with Preview and Import now buttons, the last import’s three recipes, and the list of sources by cuisine.

Option Type Default Description
dry_run boolean true Preview imports without writing to Mealie.
max_total integer 25 New recipes per run: a run stops after this many new recipes from all your sources together. 0 means no limit.
limit integer 50 From one site, at most: keeps one site from filling a run on its own. 0 means no limit.
depth integer 1000 Maximum URLs to scan per site sitemap.
no_cache boolean false Ignore cached sitemaps and crawl fresh.
import_workers integer 2 Concurrent import workers, capped at 4.
precheck_duplicates boolean true Fetch existing Mealie recipes first and skip duplicates before import.
language_filter boolean true Skip recipes that do not match DREDGER_TARGET_LANGUAGE.
max_retry_attempts integer 3 Retry transient failures before marking a URL rejected. A page that makes Mealie time out on every try counts against this; connection errors and 502, 503 and 504 answers don’t.