Git Product home page Git Product logo

ww-webcrawler's Introduction

ww-webcrawler

Very simple webcrawler implemented using Wetware

ww-webcrawler's People

Contributors

mikelsr avatar

Stargazers

Christos Konstantinos Matzoros avatar

Watchers

 avatar

ww-webcrawler's Issues

Implement a worker pool

The current design is a proof of concept that spawns a new worker per every new URL. It works, the concept is proved.

The next step is to create a worker pool which will have two types of processes:

Coordinator process

Spawns other processes, register results and assigns work to workers.

Coordinator flow:

  1. Allocate a queue for URLs and N channels. The queue will have one value at creation, the starting URL.
  2. Spawn N workers, assign one channel to each.
  3. Send starting URL to one of the workers.
  4. Every time a message is received through a channel:
    4.1. Empty message = URL request. Send the next URL from the queue through this channel.
    4.2. Message with URL. Put URL in the queue if it hasn't already been processed before. Reply to this same channel with next URL from the queue.

Worker process

Crawls pages.

Worker flow:

  1. Request URL from coordinator.
  2. Wait for URL.
  3. Crawl URL.
  4. Send results back.
  5. GOTO 2.

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.