Git Product home page Git Product logo

web-crawler's Introduction

NestJS app with Web Crawling and Asset Harvesting

Description

This is a NestJS app, handling webpage crawling for requested url using Puppeteer, and managing those crawled websites using a mongoDB based REST API.

Setup Instructions

  1. Have Docker running on your system.
  2. Start up the environment with you favorite js package manager (e.g. pnpm start, yarn start or npm run start)

Usage

  1. Take a website data snapshot by POSTING the api endpoint /crawl / /snapshots with a body like { "url": "https://google.com" }.
  2. Fetch snapshots list (optionally with filters/sorting), show or delete a specific snapshot with the /snapshots REST api endpoint.

API Reference / Documentation

You can find API reference in the following places:

  1. Go to https://david-a.github.io/web-crawler/ (Static, manually updated docs website)
  2. Using the /docs endpoint when the app is running.
  3. Import docs/swagger.json into your Swagger.

Known Issues

  1. .env file included for simplicity but usually it should be gitignored
  2. TypeORM was used for connecting and querying MongoDB. Its MongoDB driver’s a bit outdated (^3.6.0, current version is 5.0.1) Another supported option is mongoose (mongoose implementation example can be shown here - https://github.com/david-a/vending-machine).

web-crawler's People

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.