Giter Club home page Giter Club logo

web_crawler's Introduction

web_crawler

Web-Crawler based in Node JS and Mongo DB.

  • It will take a URL as an input and fetch all the anchor tags, headings, and paragraphs.
  • Whenever a new web page is crawled, it will display that in a table.

You can crawl as many pages as you want.

Installation:

  • express (framework is used for routing);
  • http (is used to run HTTP requests);
  • ejs (is a template engine used for rendering HTML files);
  • socket.io (is used for realtime communication);
  • request (is used to fetch content of web page);
  • cheerio (is used for jQuery DOM manipulation);
  • express-formidable (to get values from FormData object);
  • mongodb (will be our database);
  • htmlspecialchars (is used to convert HTML tags into entities);
  • node-html-parser (to convert the HTML string into DOM nodes).

After all the modules are installed, run the server.

Usage:

The crawler page contains with a simple form including an input field and a "Crawl" button. In that input field, you can enter the URL of the page you wanted to crawl. The DataTable library is using for showing data. Along with all the crawled data on the web page, it will also show 2 buttons to “Delete” and to “Re-index”. "Delete" simply means to delete the page from the database. “Reindex” means to re-crawl the web page to fetch updated content.

ScreenShots:

1 2 3 4 5 6 7

web_crawler's People

Contributors

lia-pavlova 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.