QualWeb Crawler
Crawler mechanism for QualWeb. Implementation using puppeteer.
How to install
$ npm i @qualweb/crawler --save
How to run
'use strict';
const puppeteer = require('puppeteer');
const { Crawler } = require('@qualweb/crawler');
(async () => {
const browser = await puppeteer.launch();
const viewport = {
};
const crawler = new Crawler(browser, 'https://ciencias.ulisboa.pt', viewport);
const options = {
maxDepth?: 2,
maxUrls?: 100,
timeout?: 60,
maxParallelCrawls?: 10,
logging?: true
};
await crawler.crawl(options);
await browser.close();
const urls = crawler.getResults();
console.log(urls);
})();
License
ISC