UNPKG

get-all-links

Version:

A node crawler that return all links/href from website

14 lines (12 loc) 289 B
/** * TEST SCRIPT */ const {Spider} = require('./index') const getAllLinks = new Spider({ depth: 3, url : "https://www.medanta.org", onSuccess : console.log, onFailure : console.log, onFinsh : (data) => console.log(data.length) }) getAllLinks.crawl()