All Projects → schollz → ingredients

schollz / ingredients

Licence: MIT license
Extract recipe ingredients from any recipe website on the internet.

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to ingredients

RecipeSage-selfhost
A collection of configuration files to host your own private instance of RecipeSage for personal use.
Stars: ✭ 35 (-63.54%)
Mutual labels:  recipes, cooking
Przepisy
Lista moich przepisów kulinarnych [List of my cooking recipes, in Polish]
Stars: ✭ 20 (-79.17%)
Mutual labels:  recipes, cooking
recipes
Application for managing recipes, planning meals, building shopping lists and much much more!
Stars: ✭ 3,570 (+3618.75%)
Mutual labels:  recipes, cooking
The Bread Code
Learn how to master the art of baking the programmer way.
Stars: ✭ 3,744 (+3800%)
Mutual labels:  recipes, cooking
Recipe-Scraper
A JS package for scraping recipes from the web.
Stars: ✭ 78 (-18.75%)
Mutual labels:  recipes
recipeyak
🍛 Application to automate the selection of meals and creation of shopping lists.
Stars: ✭ 23 (-76.04%)
Mutual labels:  cooking
Position-Aware-Tagging-for-ASTE
Code and models for the paper " Position-Aware Tagging for Aspect Sentiment Triplet Extraction", EMNLP 2020.
Stars: ✭ 70 (-27.08%)
Mutual labels:  tagging
scrape-schema-recipe
Scrapes recipes from HTML https://schema.org/Recipe (Microdata/JSON-LD) into Python dictionaries.
Stars: ✭ 43 (-55.21%)
Mutual labels:  recipes
IdSharp
.NET ID3 Tagging Library
Stars: ✭ 50 (-47.92%)
Mutual labels:  tagging
wES
wES is set of open source Java ElasticSearch client and toolkits; Compact, yet highly customizable and powerful.
Stars: ✭ 27 (-71.87%)
Mutual labels:  cooking
SSCTaglistView
Customizable iOS tag list view, in Swift.
Stars: ✭ 54 (-43.75%)
Mutual labels:  tagging
f43.me
A more readable & cleaner feed
Stars: ✭ 60 (-37.5%)
Mutual labels:  extractor
tagify
Tagify produces a set of tags from a given source. Source can be either an HTML page, a Markdown document or a plain text. Supports English, Russian, Chinese, Hindi, Spanish, Arabic, Japanese, German, Hebrew, French and Korean languages.
Stars: ✭ 24 (-75%)
Mutual labels:  tagging
aws-enterprise-naming-tagging-standard
AWS Tagging policy and naming convention for all resources created within any AWS accounts under the AWS Master Account.
Stars: ✭ 48 (-50%)
Mutual labels:  tagging
auto-movie-tagger
A Python script that auto tags and adds poster to mkv or mp4 movie files.
Stars: ✭ 49 (-48.96%)
Mutual labels:  tagging
YaEtl
Yet Another ETL in PHP
Stars: ✭ 60 (-37.5%)
Mutual labels:  extractor
Tagos
A Gui To Manage Tags
Stars: ✭ 15 (-84.37%)
Mutual labels:  tagging
checks-out
Checks-Out pull request approval system
Stars: ✭ 79 (-17.71%)
Mutual labels:  tagging
npk-tools
Mikrotik's NPK files managing tools
Stars: ✭ 63 (-34.37%)
Mutual labels:  extractor
undock
Extract contents of a container image in a local folder
Stars: ✭ 119 (+23.96%)
Mutual labels:  extractor

ingredients

Code coverage Build Status Go Doc

This 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 and schollz/extract_recipe.

Try it online: https://schollz.com/blog/ingredients/#try

Usage

Online API

You can use it online, just do GET https://ingredients.schollz.now.sh/?url=X where X is a URL to a recipe website.

$ curl https://ingredients.schollz.now.sh/?url=https://cooking.nytimes.com/recipes/12320-apple-pie

Command line

You can use it from the command line! If you download a release, you can also use it from the command line:

$ ingredients https://www.tasteofhome.com/recipes/banana-chocolate-chip-cookies/

Go library

You can use as a library.

$ go get github.com/schollz/ingredients

Pick a random website, like JoyFoodSunshine, and you can extract the ingredients:

r, _ := ingredients.NewFromURL("https://joyfoodsunshine.com/the-most-amazing-chocolate-chip-cookies/")
fmt.Println(r.IngredientList())
// Output:
// 1 cup butter (salted)
// 1 cup sugar (white)
// 1 cup brown sugar (light)
// 2 tsp vanilla (pure)
// 2 whole eggs
// 3 cups flour (all purpose)
// 1 tsp baking soda
// 1/2 tsp baking powder
// 1 tsp salt (sea)
// 2 cups chocolate chips

Please make an issue if you find a problem.

How does it work?

See my blog post about it: schollz.com/blog/ingredients.

Develop

If you modify the corpus/ information then you will need to run

$ go generate

before using the library again.

Contributing

Pull requests are welcome. Feel free to...

  • Revise documentation
  • Add new features
  • Fix bugs
  • Suggest improvements

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].