Comment on CookTrace 1.0.0-rc.1: Self-hosted Recipe Manager
irmadlad@lemmy.world 1 day ago
Any recipe URL — three engines: schema.org JSON-LD (fast), recipe-scrapers Python library (300+ site-specific extractors), AI Smart mode for sites that block scrapers
So, I can input a url of a recipe, say: ciaoflorentina.com/rustic-crusty-bread-recipe/ (no idea who they are, just first search result) and CookTrace imports it correctly? Or are there specific sites that can be imported. How about TikTok recipes? I know, I know…but my lady friend likes trying recipes off of TikTok. Some actually are very good despite the source. She wouldn’t bookmark them, so of course it was a hassle to go find them. I finally found an app called CookGo that would import the recipe off of TikTok in a format we’re all used to sans all the chatter.
TraceApps@lemmy.world 1 day ago
That URL should import cleanly; it’s a standard food blog with the markup the importer expects.
TikTok though, honestly, no. TikTok pages don’t expose the recipe text to scrapers and the AI fallback has almost nothing to work with. A real TikTok URL importer would need to call TikTok’s caption API and transcribe the video audio, which isn’t built yet.
Workaround that may possibly work today: screenshot the recipe overlay (or the comment where the creator wrote it out) and use Photo Import the AI extracts the recipe from the image. Two taps, same result.
curbstickle@anarchist.nexus 1 day ago
I’m just going to note I’ve done this with an instagram recipe with good results - not with cooktrace, but my local llm to generate json for mealie.
I’ll have to spin your trio up this weekend!
Cool, I figured TikTok was a long shot. Regardless, I think I’m going to give it a go.