Giter Club home page Giter Club logo

menuscraper's Introduction

MenuScraper

Anaphylaxis is a serious allergic reaction that is rapid in onset and may cause death. With more careful preventative measures, decreasing the occurrence of these episodes becomes more realistic. Being aware of problematic menu items containing anaphylaxis "triggers" is an important first step in precautionary measures. The purpose of this project is to visit the allmenus.com website and retrieve the contents of a given list of restaurants' menus.

This project is composed of three scripts that each perform a separate function:

  1. grab_links_server.py - this script will visit the URLs provided as a variable and collect all of the URLs associated with separate menus on the allmenus.com website

  2. menu_scrape_server.py - this script will visit the URLs gathered in the previous script and save each restaurant's menu as a separate text file wihin the menus directory

  3. create_categorical_matrix.py - using the triggers.csv and triggers.txt files, this script will aggregate the menus contatined in the menus directory into a matrix. If the menu item description contains an anaphylaxis-causing ingredient, a 0 will appear in that column of ingredient and 1 otherwise. This is to assist with machine learning input.

menuscraper's People

Contributors

stevedem avatar

Watchers

 avatar

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.