Giter Site home page Giter Site logo

web-crawler's Introduction

Web Crawler

Web Crawler - the service, which allow you to search the crawled websites in Wikipedia

Prerequsites

  • node v10.x.x
  • npm v7.x.x
  • docker v20.x.x
  • docker-compose v1.25.x

Architecture

img.png

Services:

  1. Web crawler service - to crawl and store the links and page data
  2. Search backend api - service to search the links
  3. search frontend - frontend for search

How to run the project:

1) Increase ES memory

For windows you'll need to increase memory for ES via wsl wsl -d docker-desktop then _sysctl -w vm.max_map_count=262144_

For linux _sysctl -w vm.max_map_count=262144_ and chmod 777 .docker/elasticsearch -R to allow access to elasticSearch folder from docker

2) Install vendor PHP dependecies for Web Crawler Service

In web-crawler-service folder run sudo docker-compose run php composer install

3) Run docker

In web-crawler-service run docker-compose up to initialize running

4) Run console crawler

Start the crawling proceess via sudo docker-compose run php bin/console crawl. It will proccess of adding message with pages metadata to RabbitMQ

5) Redis issue

You need to check redis port in the log and directly change it in "web-crawler-service/src/Service/CrawlService.php". This is because Redis-clusted docker issue bug

6) Run workers

You need to activate workers to store and indexing the data from the RabbitMQ. For this you need to run docker run worker with docker-compose running in the background

7) Run backend for search the links

In search-service/search-backend-api run docker-comppose up and install the node modules

8) Run frontend

In search-service/search-fronend install node modules and run npm start with your local nodejs

You are done :)

Tools Navigator

Features for the next Release

  • Page Rank ( sort pages by count of links, which leads to this particular link )
  • Add software load balancer

web-crawler's People

Contributors

onehedgehog avatar

Stargazers

 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.