npm.io
1.0.24 • Published 9 years ago

headsman

Licence
ISC
Version
1.0.24
Deps
1
Vulns
0
Weekly
0

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 --save

People

The current lead maintainer is [Jack Isherwood]

License

ISC

Keywords