Code Monkey home page Code Monkey logo

restaurants-crawler's Introduction

restaurants-crawler

Goal

This is the part 1 of the series of Restaurant Recommender Story. This project aims to crawl the number of restaurants in the first page of each district

Idea

Source: www.openrice.com Automate the process to retrieve all restaurant information The restaurant information is organized by district There is pagination in each district page Challenge: The number of restaurants in the first page of each district is different

Pre-requistise

Bee-Queue (https://github.com/bee-queue/bee-queue) Redis Firebase

Architecture

  1. queue server definiation (queue-processor.js)
  2. database (database.js)
  3. server instance (app-1.js)
  4. submit job client (count-restaurant-per-page.js)

Step to run:

Find the number of restaurant per page

  1. start the queue server
node ./restaurant-per-page/index.js
  1. submit the counting jobs
node ./restaurant-per-page/count-restaurants-per-page.js

Result is saved in Firebase

Solve the page count per district

  1. start the queue server
node ./pages-per-district/index.js
  1. sumbit the jobs
node ./pages-per-district/solve-page-count-per-district.js

restaurants-crawler's People

Contributors

m41highway avatar

Watchers

James Cloos 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.