Socket
Book a DemoInstallSign in
Socket

dandy-crawl

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dandy-crawl

A website crawler. Stays in the same website and return every internal linked URL with the associated HTTP status code

1.2.2
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

Dandy Crawl

Crawl the interwebs like a real Dandy ಠ_ರೃ !

npm version

A website crawler, that return every internal URLs with the associated HTTP status code. Returned data is an oriented graph, following this model :

nodes: {
    values: [],
    lastNodeId: 0,
    get(currentUrl) {
        return this.values.filter(function (node) {
            return node.url === currentUrl;
        })[0]
    }
},
edges: {
    values: [],
    lastEdgeId: 0,
    get(from, to) {
        return this.values.filter(function (edge) {
            return edge.from === from && edge.to === to;
        })[0]
    }
}

Usage

import DandyCrawl from 'dandy-crawl';

const dandee = new DandyCrawl(http://127.0.0.1:8080);

dandee.exploreDomain().then(data => {
  console.log(data);
});

Keywords

crawler

FAQs

Package last updated on 29 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.