{"id":13510037,"url":"https://github.com/schollz/ingredients","last_synced_at":"2026-04-16T21:30:26.721Z","repository":{"id":44484123,"uuid":"195678829","full_name":"schollz/ingredients","owner":"schollz","description":"Extract recipe ingredients from any recipe website on the internet.","archived":false,"fork":false,"pushed_at":"2022-11-24T14:23:18.000Z","size":1610,"stargazers_count":129,"open_issues_count":9,"forks_count":27,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-02-16T12:58:36.328Z","etag":null,"topics":["cooking","extractor","ingredients","recipes","tagging"],"latest_commit_sha":null,"homepage":"https://schollz.com/blog/ingredients/#try","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/schollz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"schollz"}},"created_at":"2019-07-07T17:25:53.000Z","updated_at":"2025-02-05T04:03:26.000Z","dependencies_parsed_at":"2022-09-01T23:11:11.149Z","dependency_job_id":null,"html_url":"https://github.com/schollz/ingredients","commit_stats":null,"previous_names":["schollz/recipeingredients"],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schollz%2Fingredients","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schollz%2Fingredients/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schollz%2Fingredients/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schollz%2Fingredients/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schollz","download_url":"https://codeload.github.com/schollz/ingredients/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240012311,"owners_count":19733879,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cooking","extractor","ingredients","recipes","tagging"],"created_at":"2024-08-01T02:01:21.920Z","updated_at":"2026-04-16T21:30:26.650Z","avatar_url":"https://github.com/schollz.png","language":"HTML","funding_links":["https://github.com/sponsors/schollz"],"categories":["HTML","others"],"sub_categories":[],"readme":"# ingredients\n\n\u003cimg src=\"https://img.shields.io/badge/coverage-75%25-brightgreen.svg?style=flat-square\" alt=\"Code coverage\"\u003e\u0026nbsp;\u003ca href=\"https://travis-ci.org/schollz/ingredients\"\u003e\u003cimg src=\"https://img.shields.io/travis/schollz/ingredients.svg?style=flat-square\" alt=\"Build Status\"\u003e\u003c/a\u003e\u0026nbsp;\u003ca href=\"https://godoc.org/github.com/schollz/ingredients\"\u003e\u003cimg src=\"http://img.shields.io/badge/godoc-reference-5272B4.svg?style=flat-square\" alt=\"Go Doc\"\u003e\u003c/a\u003e \n\nThis is a Golang library for *ingredient tagging* and *extraction* for **any recipe on the internet**. This library compartmentalizes and improves aspects of recipe extraction that I did previously with [schollz/meanrecipe](https://github.com/schollz/meanrecipe) and [schollz/extract_recipe](https://github.com/schollz/extract_recipe).\n\nTry it online: https://schollz.com/blog/ingredients/#try\n\n## Usage\n\n### Online API\n\nYou can use it online, just do `GET https://ingredients.schollz.now.sh/?url=X` where `X` is a URL to a recipe website.\n\n```\n$ curl https://ingredients.schollz.now.sh/?url=https://cooking.nytimes.com/recipes/12320-apple-pie\n```\n\n### Command line\n\nYou can use it from the command line! If you [download a release](https://github.com/schollz/ingredients/releases/latest), you can also use it from the command line:\n\n```\n$ ingredients https://www.tasteofhome.com/recipes/banana-chocolate-chip-cookies/\n```\n\n### Go library\n\n\nYou can use as a library.\n\n```\n$ go get github.com/schollz/ingredients\n```\n\nPick a random website, like [JoyFoodSunshine](https://joyfoodsunshine.com/the-most-amazing-chocolate-chip-cookies/), and you can extract the ingredients:\n\n```go\nr, _ := ingredients.NewFromURL(\"https://joyfoodsunshine.com/the-most-amazing-chocolate-chip-cookies/\")\nfmt.Println(r.IngredientList())\n// Output:\n// 1 cup butter (salted)\n// 1 cup sugar (white)\n// 1 cup brown sugar (light)\n// 2 tsp vanilla (pure)\n// 2 whole eggs\n// 3 cups flour (all purpose)\n// 1 tsp baking soda\n// 1/2 tsp baking powder\n// 1 tsp salt (sea)\n// 2 cups chocolate chips\n```\n\nPlease make an issue if you find a problem.\n\n\n## How does it work?\n\nSee my blog post about it: [schollz.com/blog/ingredients](https://schollz.com/blog/ingredients).\n\n## Develop\n\nIf you modify the `corpus/` information then you will need to run \n\n```\n$ go generate\n```\n\nbefore using the library again.\n\n## Contributing\n\nPull requests are welcome. Feel free to...\n\n- Revise documentation\n- Add new features\n- Fix bugs\n- Suggest improvements\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschollz%2Fingredients","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschollz%2Fingredients","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschollz%2Fingredients/lists"}