Coder Social home page Coder Social logo

web-crawler's Introduction

Multi-threaded Web Crawler

The program consists of two parts: front end part and back end part. In the back end part, the C++ program crawling a significant amount of URLs with many threads, and a shared queue is used to coordinate between threads, and a separate thread is also used to collect all statistics information, such as url crawled, bytes received, links parsed from pages. Also, the statis thread is also responsible to send statistic information to the front end. I have used the uWebSockets to communicate between back end and front end, and the data is sent through Json format.

In the front end, Node.js is used to display the statistic information. I have deployed the front end in AWS, but the back end is with my laptop, so the crawled information is sent to the front end once connection is established.

For the C++ files, simply go with cmake, build and use the format

./crawler num_threads url_files

If anything goes wrong with the environment setupt, refer this post for information.

Below is the screenshot of the statistic information.

web-crawler's People

Contributors

snmnmin12 avatar

Stargazers

 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.