Code Monkey home page Code Monkey logo

Comments (4)

benhollar avatar benhollar commented on July 1, 2024

I saw this article about someone who took on a similar problem (scraping recipes from HTML), but it focuses specifically on ingredients. Those are, of course, only part of a recipe.

https://schollz.com/blog/ingredients/

from thespicerack.

benhollar avatar benhollar commented on July 1, 2024

The NYT also has a library focuses on ingredient parsing, which may be useful for structuring extracted information.

https://github.com/nytimes/ingredient-phrase-tagger

from thespicerack.

benhollar avatar benhollar commented on July 1, 2024

Additional NLP will be needed to structure extracted "recipe content" from HTML.

I already mentioned the NYT ingredient parser, but we may also need to make a classifier that can take a blob of text containing a recipe name, ingredients and instructions and classify it into those parts, line by line.

An example of such an exercise (found by looking up "multi-class text classification") is detailed in this article.

from thespicerack.

benhollar avatar benhollar commented on July 1, 2024

I'll also jot down some thoughts on parsing JavaScript-dependent sites like Allrecipes.

We may need to execute the JS and then read the HTML when creating our gold standard files. For consistency's sake, we'd probably need to do so for the whole database, and then double check "corrected" files still work.

A library that may help with this task is scrapy, which has plugins that would allow us to execute the JS and get the HTML we need for our dataset.

from thespicerack.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.