Skip to content

tmos/dandy-crawl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
});

About

NPM package to crawl the interweb

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published