headsman
v1.0.24
Published
Uses a headless browser to fully render a webpage and return the final html content.
Downloads
90
Maintainers
Readme
headsman - Fast NodeJS API for scraping html
Makes scraping dynamically generated websites easy.
const headsman = require('headsman');
async function dynamicToHtml() {
//headsman.getHtml takes a string URL and returns the fully generated html.
var content = await headsman.getHtml("http://www.example.com");
return content
}
console.log(dynamicToHtml())Using Node v7+ you can run the above example with node --harmony-async-await file.js
Install headsman with:
$ npm install headsman --savePeople
The current lead maintainer is [Jack Isherwood]
