GithubHelp home page GithubHelp logo

imclab / open-health-inspection-scraper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from code4hr/open-health-inspection-scraper

0.0 2.0 0.0 601 KB

Scraper for the open-health-inspector app.

License: Apache License 2.0

open-health-inspection-scraper's Introduction

open-health-inspection-scraper

Tool to get VA restaurant health inspection data from website to database. Addresses are geocoded using the SmartyStreets API. An older version uses the Google Geocoding API. To use SmartyStreets you will need to obtain a key. The Google version does not require a key but is limited to 2,500 lookups per 24-hour period.

To run:

  1. cd to the scraper directory

  2. Run pip install -r requirements.txt to install the necessary dependencies.

  3. Add config.json file with the following content:

    {"db_uri": "[URI TO MONGODB]",  
     "db_name":"[NAME OF DATABASE]",
     "ss_id": "[SmartyStreets ID]", 
     "ss_token":"[SmartyStreets Token]",
     "state": "[Full state name, i.e. Virginia, used for geocoding]",
     "state_abb": "[State abbreviation, this becomes the collection name in Mongo]"}
    
  4. Run the python 2.x script

    python scrapeHealthData.py
    
  5. After your first run through you will need to create a 2dsphere index on the geo field in MongoDB.

    db.[state_abb].ensureIndex({'geo': '2dsphere'})
    

license

[Apache 2.0] (https://www.apache.org/licenses/LICENSE-2.0.html)

open-health-inspection-scraper's People

Contributors

bschoenfeld avatar kalmas avatar ryayak1460 avatar seabre avatar ttavenner avatar wbprice avatar

Watchers

 avatar  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.