@diogoazevedos/harvest
v2.0.0
Published
Powerfull web scraper service, based on x-ray.
Downloads
13
Maintainers
Readme
Harvest
import harvest from '@diogoazevedos/harvest'
const url = 'https://github.com/diogoazevedos'
const payload = {
name: '.vcard-fullname',
repos: [{
$root: '.popular-repos .source',
name: '.repo'
}]
}
harvest(url, payload)
.then(response => console.log(response))
.catch(error => console.log(error))
Requirement
Harvest uses PhantomJS behind the scenes, because of this you need to install it globally.
$ npm install -g phantomjs
Getting started
Just install as a dependency to your project.
$ npm install @diogoazevedos/harvest --save
License
MIT